Skip to content
Draft
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
13 changes: 11 additions & 2 deletions pygmt/tests/test_grdview.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pygmt.exceptions import GMTParameterError, GMTTypeError
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import load_static_earth_relief
from pygmt.params import Axis, Frame


@pytest.fixture(scope="module", name="region")
Expand Down Expand Up @@ -79,7 +80,11 @@ def test_grdview_image_dpi(grid):
projection="M4c",
surftype="image",
dpi=dpi,
frame=["af", f"WSen+tdpi={dpi}"],
frame=Frame(
axes="WSen",
axis=Axis(annot=True, tick=True),
title=f"dpi={dpi}",
),
perspective=(225, 30),
)
fig.shift_origin(xshift="7c")
Expand Down Expand Up @@ -222,7 +227,11 @@ def test_grdview_with_perspective_and_zaxis_frame(xrgrid, region):
projection=projection,
perspective=[225, 30],
zscale=0.005,
frame=["xaf", "yaf", "zaf"],
frame=Frame(
xaxis=Axis(annot=True, tick=True),
yaxis=Axis(annot=True, tick=True),
zaxis=Axis(annot=True, tick=True),
),
)
return fig

Expand Down
Loading