Skip to content

Commit 8dcedf7

Browse files
committed
Rename test_pygmtlogo function to test_pygmtlogo_circle_no_wordmark and improve it
1 parent 4868c8a commit 8dcedf7

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

pygmt/tests/baseline/test_pygmtlogo.png.dvc

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
outs:
2+
- md5: 7e9ae246fb528a56eee17c058aee8616
3+
size: 16840
4+
hash: md5
5+
path: test_pygmtlogo_circle_no_wordmark.png

pygmt/tests/test_pygmtlogo.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@
44

55
import pytest
66
from pygmt import Figure
7+
from pygmt.params import Axis, Position
78

89

9-
@pytest.mark.benchmark
1010
@pytest.mark.mpl_image_compare
11-
def test_pygmtlogo():
11+
def test_pygmtlogo_circle_no_wordmark():
1212
"""
1313
Plot the default PyGMT logo, colored, light and dark themes, without wordmark.
1414
"""
1515
fig = Figure()
16-
fig.pygmtlogo()
17-
fig.shift_origin(xshift="+w")
18-
fig.pygmtlogo(theme="dark")
16+
fig.basemap(region=[-0.5, 5.5, -0.5, 2.5], projection="x1c", frame=Axis(grid=0.5))
17+
fig.pygmtlogo(
18+
position=Position((1, 1), anchor="CM", cstype="mapcoords"), theme="light"
19+
)
20+
fig.pygmtlogo(
21+
position=Position((4, 1), anchor="CM", cstype="mapcoords"), theme="dark"
22+
)
1923
return fig

0 commit comments

Comments
 (0)