Skip to content

Commit af79eef

Browse files
committed
Refactor test_logo tests to be simpler and more unit-test like
1 parent f3aa3c5 commit af79eef

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 905d5b9f0f8d8b809899dfe9e87d0e91
3-
size: 33347
2+
- md5: 61be9b262729e0a6b739e814d1aa4655
3+
size: 32065
44
path: test_logo.png
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 25854f87e4e6f4c30be71bc08a3d430c
3-
size: 114522
2+
- md5: 57c3747cb7d2ed978e473d0f161ca3a6
3+
size: 70993
44
path: test_logo_on_a_map.png

pygmt/tests/test_logo.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
@pytest.mark.mpl_image_compare
99
def test_logo():
1010
"""
11-
Plot a GMT logo of a 2 inch width as a stand-alone plot.
11+
Plot the GMT logo as a stand-alone plot.
1212
"""
1313
fig = Figure()
14-
fig.logo(position="x0/0+w2i")
14+
fig.logo()
1515
return fig
1616

1717

1818
@pytest.mark.mpl_image_compare
1919
def test_logo_on_a_map():
2020
"""
21-
Plot a GMT logo in the upper right corner of a map.
21+
Plot the GMT logo at the upper right corner of a map.
2222
"""
2323
fig = Figure()
24-
fig.coast(region=[-90, -70, 0, 20], projection="M6i", land="chocolate", frame=True)
25-
fig.logo(position="jTR+o0.1i/0.1i+w3i", box=True)
24+
fig.basemap(region=[-90, -70, 0, 20], projection="M15c", frame=True)
25+
fig.logo(position="jTR+o0.25c/0.25c+w7.5c", box=True)
2626
return fig

0 commit comments

Comments
 (0)