1010
1111@pytest .mark .mpl_image_compare (savefig_kwargs = {"dpi" : 600 })
1212@pytest .mark .parametrize ("wordmark" , ["horizontal" , "vertical" ])
13- def test_pygmtlogo_circle_design (wordmark ):
13+ @pytest .mark .parametrize ("shape" , ["circle" ])
14+ def test_pygmtlogo_design (shape , wordmark ):
1415 """
15- Test the design details of the PyGMT circular logo, with a wordmark.
16+ Test the design details of the PyGMT logo with a wordmark.
1617
1718 This is a regression test to ensure that the design of the logo does not change
1819 unintentionally. The debugging lines (gridlines and circles) are helpful for
1920 implementing the logo, but they are not included in the final logo design.
2021 """
21- fig = _create_logo (debug = True , wordmark = wordmark )
22+ fig = _create_logo (debug = True , shape = shape , wordmark = wordmark )
2223 return fig
2324
2425
2526@pytest .mark .mpl_image_compare
26- def test_pygmtlogo_circle_no_wordmark ():
27+ @pytest .mark .parametrize ("shape" , ["circle" ])
28+ def test_pygmtlogo_wordmark_none (shape ):
2729 """
28- Test the PyGMT circular logo without the wordmark, including both light/dark themes,
29- and colored/black-and-white versions.
30+ Test the PyGMT logo without the wordmark, including both light/dark themes, and
31+ colored/black-and-white versions.
3032 """
3133 fig = Figure ()
3234 fig .basemap (
@@ -41,8 +43,9 @@ def test_pygmtlogo_circle_no_wordmark():
4143 ((3.5 , 1.0 ), "dark" , False ),
4244 ]:
4345 fig .pygmtlogo (
44- position = Position ((x , y ), anchor = "CM " , cstype = "mapcoords" ),
46+ position = Position ((x , y ), anchor = "MC " , cstype = "mapcoords" ),
4547 theme = theme ,
4648 color = color ,
49+ shape = shape ,
4750 )
4851 return fig
0 commit comments