@@ -56,7 +56,7 @@ def test_grdimage(grid):
56
56
Plot an image using an xarray grid.
57
57
"""
58
58
fig = Figure ()
59
- fig .grdimage (grid , cmap = "earth" , projection = "W0/6i " )
59
+ fig .grdimage (grid , cmap = "earth" , projection = "W0/10c " )
60
60
return fig
61
61
62
62
@@ -67,7 +67,7 @@ def test_grdimage_slice(grid):
67
67
"""
68
68
grid_ = grid .sel (lat = slice (- 30 , 30 ))
69
69
fig = Figure ()
70
- fig .grdimage (grid_ , cmap = "earth" , projection = "M6i " )
70
+ fig .grdimage (grid_ , cmap = "earth" , projection = "M10c " )
71
71
return fig
72
72
73
73
@@ -81,7 +81,7 @@ def test_grdimage_file():
81
81
"@earth_relief_01d_g" ,
82
82
cmap = "ocean" ,
83
83
region = [- 180 , 180 , - 70 , 70 ],
84
- projection = "W0/10i " ,
84
+ projection = "W0/10c " ,
85
85
shading = True ,
86
86
)
87
87
return fig
@@ -98,7 +98,7 @@ def test_grdimage_default_no_shading(grid, shading):
98
98
"""
99
99
grid_ = grid .sel (lat = slice (- 30 , 30 ))
100
100
fig = Figure ()
101
- fig .grdimage (grid_ , cmap = "earth" , projection = "M6i " , shading = shading )
101
+ fig .grdimage (grid_ , cmap = "earth" , projection = "M10c " , shading = shading )
102
102
return fig
103
103
104
104
@@ -181,8 +181,7 @@ def test_grdimage_global_subset(grid_360):
181
181
Specifically checking that xarray.DataArray grids can wrap around the left and right
182
182
sides on a Mollweide projection (W) plot correctly. Note that a Cartesian grid is
183
183
used here instead of a Geographic grid (i.e. GMT_GRID_IS_CARTESIAN). This is a
184
- regression test for
185
- https://github.com/GenericMappingTools/pygmt/issues/732.
184
+ regression test for https://github.com/GenericMappingTools/pygmt/issues/732.
186
185
"""
187
186
# Get a slice of South America and Africa only (lat=-90:31, lon=-180:41)
188
187
sliced_grid = grid_360 [0 :121 , 0 :221 ]
@@ -191,7 +190,7 @@ def test_grdimage_global_subset(grid_360):
191
190
192
191
fig = Figure ()
193
192
fig .grdimage (
194
- grid = sliced_grid , cmap = "vik" , region = "g" , projection = "W0/3.5c " , frame = True
193
+ grid = sliced_grid , cmap = "vik" , region = "g" , projection = "W0/10c " , frame = True
195
194
)
196
195
return fig
197
196
0 commit comments