Skip to content

Commit 160dcdf

Browse files
Update and add tests
1 parent 7efd08d commit 160dcdf

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

pygmt/tests/test_pygmtlogo.py

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ def test_pylogo():
1818

1919

2020
@pytest.mark.mpl_image_compare
21-
def test_pylogo_on_a_map():
21+
def test_pylogo_vertical_wordmark():
2222
"""
23-
Plot the PyGMT logo and adjust the position, offset, and size.
23+
Plot the PyGMT logo with vertical orientation of the wordmark.
2424
"""
2525
fig = Figure()
2626
fig.basemap(region=[-5, 5, -5, 5], projection="X10c", frame=1)
27-
fig.pygmtlogo(position="jMC+o0.25c/0.25c+w7.5c", box=True)
27+
fig.pygmtlogo(wordmark="vertical")
2828
return fig
2929

3030

@@ -40,7 +40,7 @@ def test_pylogo_no_wordmark():
4040

4141

4242
@pytest.mark.mpl_image_compare
43-
def test_pylogo_lightmode():
43+
def test_pylogo_color_darkmode():
4444
"""
4545
Plot the PyGMT logo in dark mode.
4646
"""
@@ -51,11 +51,22 @@ def test_pylogo_lightmode():
5151

5252

5353
@pytest.mark.mpl_image_compare
54-
def test_pylogo_vertical():
54+
def test_pylogo_blackwhite_light():
5555
"""
56-
Plot the PyGMT logo with vertical orientation of the wordmark.
56+
Plot the PyGMT logo in dark mode.
5757
"""
5858
fig = Figure()
5959
fig.basemap(region=[-5, 5, -5, 5], projection="X10c", frame=1)
60-
fig.pygmtlogo(wordmark="vertical")
60+
fig.pygmtlogo(color=False)
61+
return fig
62+
63+
64+
@pytest.mark.mpl_image_compare
65+
def test_pylogo_backwhite_dark():
66+
"""
67+
Plot the PyGMT logo in dark mode.
68+
"""
69+
fig = Figure()
70+
fig.basemap(region=[-5, 5, -5, 5], projection="X10c", frame=1)
71+
fig.pygmtlogo(color=False, theme="dark")
6172
return fig

0 commit comments

Comments
 (0)