44
55import pytest
66from pygmt import Figure
7- from pygmt .params import Axis , Position
7+ from pygmt .params import Axis , Frame , Position
88from pygmt .src .pygmtlogo import _create_logo
99
1010
@@ -29,23 +29,20 @@ def test_pygmtlogo_circle_no_wordmark():
2929 and colored/black-and-white versions.
3030 """
3131 fig = Figure ()
32- fig .basemap (region = [- 0.5 , 5.0 , - 0.5 , 5.0 ], projection = "x1c" , frame = Axis (grid = 0.5 ))
33- fig .pygmtlogo (
34- position = Position ((1 , 3.5 ), anchor = "CM" , cstype = "mapcoords" ),
35- theme = "light" ,
36- )
37- fig .pygmtlogo (
38- position = Position ((3.5 , 3.5 ), anchor = "CM" , cstype = "mapcoords" ),
39- theme = "dark" ,
40- )
41- fig .pygmtlogo (
42- position = Position ((1 , 1 ), anchor = "CM" , cstype = "mapcoords" ),
43- theme = "light" ,
44- color = False ,
45- )
46- fig .pygmtlogo (
47- position = Position ((3.5 , 1 ), anchor = "CM" , cstype = "mapcoords" ),
48- theme = "dark" ,
49- color = False ,
32+ fig .basemap (
33+ region = [- 0.5 , 5.0 , - 0.5 , 5.0 ],
34+ projection = "x1c" ,
35+ frame = Frame (fill = "gray" , axis = Axis (grid = 0.5 )),
5036 )
37+ for (x , y ), theme , color in [
38+ ((1.0 , 3.5 ), "light" , True ),
39+ ((3.5 , 3.5 ), "dark" , True ),
40+ ((1.0 , 1.0 ), "light" , False ),
41+ ((3.5 , 1.0 ), "dark" , False ),
42+ ]:
43+ fig .pygmtlogo (
44+ position = Position ((x , y ), anchor = "CM" , cstype = "mapcoords" ),
45+ theme = theme ,
46+ color = color ,
47+ )
5148 return fig
0 commit comments