Skip to content

Commit c0efbfd

Browse files
committed
re-add paramterize for test_grdimage_central_meridian
1 parent 4aa75f5 commit c0efbfd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pygmt/tests/test_grdimage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,18 @@ def test_grdimage_over_dateline(xrgrid):
146146

147147

148148
@check_figures_equal()
149+
@pytest.mark.parametrize("lon0", [0, 123, 180])
150+
@pytest.mark.parametrize("proj_type", ["H", "W"])
149151
def test_grdimage_central_meridians(grid):
150152
"""
151153
Test that plotting a grid with different central meridians (lon0) using
152154
Hammer (H) and Mollweide (W) projection systems work.
153155
"""
154156
fig_ref, fig_test = Figure(), Figure()
155157
fig_ref.grdimage(
156-
"@earth_relief_01d_g", projection="W123/15c", cmap="geo"
158+
"@earth_relief_01d_g", projection=f"{proj_type}{lon0}/15c", cmap="geo"
157159
)
158-
fig_test.grdimage(grid, projection="W123/15c", cmap="geo")
160+
fig_test.grdimage(grid, projection=f"{proj_type}{lon0}/15c", cmap="geo")
159161
return fig_ref, fig_test
160162

161163

0 commit comments

Comments
 (0)