Skip to content

Update baseline images for grdimage tests #2984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pygmt/tests/baseline/test_grdimage.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
outs:
- md5: ff6ea7953be2b98bf7b85f6ee04e23dd
size: 180338
- md5: 4a4d857b9169baf53f4e6a3385539a84
size: 162344
path: test_grdimage.png
hash: md5
5 changes: 3 additions & 2 deletions pygmt/tests/baseline/test_grdimage_file.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
outs:
- md5: d7f7c58e200283b562fd70d7c22eaf51
size: 206241
- md5: 8ee66ca045cf9031998fef75176681c6
size: 152716
path: test_grdimage_file.png
hash: md5
5 changes: 3 additions & 2 deletions pygmt/tests/baseline/test_grdimage_global_subset.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
outs:
- md5: 877e22361cb6d2ea1fe0efe3fa84a3e3
size: 39978
- md5: 4cf31252e6c47d9263395205335932db
size: 65582
path: test_grdimage_global_subset.png
hash: md5
5 changes: 3 additions & 2 deletions pygmt/tests/baseline/test_grdimage_slice.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
outs:
- md5: 662b78f3bedde3ddf73647329bf3aab4
size: 72658
- md5: 2481f1366431e4e601ccdaf25830c33e
size: 65041
path: test_grdimage_slice.png
hash: md5
13 changes: 6 additions & 7 deletions pygmt/tests/test_grdimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_grdimage(grid):
Plot an image using an xarray grid.
"""
fig = Figure()
fig.grdimage(grid, cmap="earth", projection="W0/6i")
fig.grdimage(grid, cmap="earth", projection="W0/10c")
return fig


Expand All @@ -67,7 +67,7 @@ def test_grdimage_slice(grid):
"""
grid_ = grid.sel(lat=slice(-30, 30))
fig = Figure()
fig.grdimage(grid_, cmap="earth", projection="M6i")
fig.grdimage(grid_, cmap="earth", projection="M10c")
return fig


Expand All @@ -81,7 +81,7 @@ def test_grdimage_file():
"@earth_relief_01d_g",
cmap="ocean",
region=[-180, 180, -70, 70],
projection="W0/10i",
projection="W0/10c",
shading=True,
)
return fig
Expand All @@ -98,7 +98,7 @@ def test_grdimage_default_no_shading(grid, shading):
"""
grid_ = grid.sel(lat=slice(-30, 30))
fig = Figure()
fig.grdimage(grid_, cmap="earth", projection="M6i", shading=shading)
fig.grdimage(grid_, cmap="earth", projection="M10c", shading=shading)
return fig


Expand Down Expand Up @@ -181,8 +181,7 @@ def test_grdimage_global_subset(grid_360):
Specifically checking that xarray.DataArray grids can wrap around the left and right
sides on a Mollweide projection (W) plot correctly. Note that a Cartesian grid is
used here instead of a Geographic grid (i.e. GMT_GRID_IS_CARTESIAN). This is a
regression test for
https://github.com/GenericMappingTools/pygmt/issues/732.
regression test for https://github.com/GenericMappingTools/pygmt/issues/732.
"""
# Get a slice of South America and Africa only (lat=-90:31, lon=-180:41)
sliced_grid = grid_360[0:121, 0:221]
Expand All @@ -191,7 +190,7 @@ def test_grdimage_global_subset(grid_360):

fig = Figure()
fig.grdimage(
grid=sliced_grid, cmap="vik", region="g", projection="W0/3.5c", frame=True
grid=sliced_grid, cmap="vik", region="g", projection="W0/10c", frame=True
)
return fig

Expand Down