Skip to content

Commit ca78f8b

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

3 files changed

Lines changed: 16 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: f71418c9c7566665086b6b250cc564c4
3+
size: 18618
4+
hash: md5
5+
path: test_pygmtlogo_circle_no_wordmark.png

pygmt/tests/test_pygmtlogo.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@
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.0, -0.5, 5.0], projection="x1c", frame=Axis(grid=0.5))
17+
fig.pygmtlogo(
18+
position=Position((1, 3.5), anchor="CM", cstype="mapcoords"),
19+
theme="light",
20+
)
21+
fig.pygmtlogo(
22+
position=Position((3.5, 3.5), anchor="CM", cstype="mapcoords"),
23+
theme="dark",
24+
)
1925
return fig

0 commit comments

Comments
 (0)