File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -146,16 +146,18 @@ def test_grdimage_over_dateline(xrgrid):
146
146
147
147
148
148
@check_figures_equal ()
149
+ @pytest .mark .parametrize ("lon0" , [0 , 123 , 180 ])
150
+ @pytest .mark .parametrize ("proj_type" , ["H" , "W" ])
149
151
def test_grdimage_central_meridians (grid ):
150
152
"""
151
153
Test that plotting a grid with different central meridians (lon0) using
152
154
Hammer (H) and Mollweide (W) projection systems work.
153
155
"""
154
156
fig_ref , fig_test = Figure (), Figure ()
155
157
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"
157
159
)
158
- fig_test .grdimage (grid , projection = "W123 /15c" , cmap = "geo" )
160
+ fig_test .grdimage (grid , projection = f" { proj_type } { lon0 } /15c" , cmap = "geo" )
159
161
return fig_ref , fig_test
160
162
161
163
You can’t perform that action at this time.
0 commit comments