Skip to content

Commit 9e3f0b1

Browse files
authored
Update baseline images for grdimage tests (#2984)
1 parent 344bdb1 commit 9e3f0b1

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
outs:
2-
- md5: ff6ea7953be2b98bf7b85f6ee04e23dd
3-
size: 180338
2+
- md5: 4a4d857b9169baf53f4e6a3385539a84
3+
size: 162344
44
path: test_grdimage.png
5+
hash: md5
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
outs:
2-
- md5: d7f7c58e200283b562fd70d7c22eaf51
3-
size: 206241
2+
- md5: 8ee66ca045cf9031998fef75176681c6
3+
size: 152716
44
path: test_grdimage_file.png
5+
hash: md5
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
outs:
2-
- md5: 877e22361cb6d2ea1fe0efe3fa84a3e3
3-
size: 39978
2+
- md5: 4cf31252e6c47d9263395205335932db
3+
size: 65582
44
path: test_grdimage_global_subset.png
5+
hash: md5
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
outs:
2-
- md5: 662b78f3bedde3ddf73647329bf3aab4
3-
size: 72658
2+
- md5: 2481f1366431e4e601ccdaf25830c33e
3+
size: 65041
44
path: test_grdimage_slice.png
5+
hash: md5

pygmt/tests/test_grdimage.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_grdimage(grid):
5656
Plot an image using an xarray grid.
5757
"""
5858
fig = Figure()
59-
fig.grdimage(grid, cmap="earth", projection="W0/6i")
59+
fig.grdimage(grid, cmap="earth", projection="W0/10c")
6060
return fig
6161

6262

@@ -67,7 +67,7 @@ def test_grdimage_slice(grid):
6767
"""
6868
grid_ = grid.sel(lat=slice(-30, 30))
6969
fig = Figure()
70-
fig.grdimage(grid_, cmap="earth", projection="M6i")
70+
fig.grdimage(grid_, cmap="earth", projection="M10c")
7171
return fig
7272

7373

@@ -81,7 +81,7 @@ def test_grdimage_file():
8181
"@earth_relief_01d_g",
8282
cmap="ocean",
8383
region=[-180, 180, -70, 70],
84-
projection="W0/10i",
84+
projection="W0/10c",
8585
shading=True,
8686
)
8787
return fig
@@ -98,7 +98,7 @@ def test_grdimage_default_no_shading(grid, shading):
9898
"""
9999
grid_ = grid.sel(lat=slice(-30, 30))
100100
fig = Figure()
101-
fig.grdimage(grid_, cmap="earth", projection="M6i", shading=shading)
101+
fig.grdimage(grid_, cmap="earth", projection="M10c", shading=shading)
102102
return fig
103103

104104

@@ -181,8 +181,7 @@ def test_grdimage_global_subset(grid_360):
181181
Specifically checking that xarray.DataArray grids can wrap around the left and right
182182
sides on a Mollweide projection (W) plot correctly. Note that a Cartesian grid is
183183
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.
186185
"""
187186
# Get a slice of South America and Africa only (lat=-90:31, lon=-180:41)
188187
sliced_grid = grid_360[0:121, 0:221]
@@ -191,7 +190,7 @@ def test_grdimage_global_subset(grid_360):
191190

192191
fig = Figure()
193192
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
195194
)
196195
return fig
197196

0 commit comments

Comments
 (0)