Skip to content

Commit afa23df

Browse files
authored
Migrate Figure.plot3d tests to dvc
Related to #1131.
1 parent e37d361 commit afa23df

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

pygmt/tests/test_plot3d.py

+4-13
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,11 @@ def fixture_region():
3030
return [10, 70, -5, 10, 0, 1]
3131

3232

33-
@check_figures_equal()
33+
@pytest.mark.mpl_image_compare
3434
def test_plot3d_red_circles_zscale(data, region):
3535
"Plot the 3D data in red circles passing in vectors and setting zscale = 5"
36-
fig_ref, fig_test = Figure(), Figure()
37-
fig_ref.plot3d(
38-
data=POINTS_DATA,
39-
Jz=5,
40-
p="225/30",
41-
R="/".join(map(str, region)),
42-
J="X4i",
43-
S="c0.2c",
44-
G="red",
45-
B=["afg", "zafg"],
46-
)
36+
fig = Figure()
37+
4738
fig_test.plot3d(
4839
x=data[:, 0],
4940
y=data[:, 1],
@@ -56,7 +47,7 @@ def test_plot3d_red_circles_zscale(data, region):
5647
color="red",
5748
frame=["afg", "zafg"],
5849
)
59-
return fig_ref, fig_test
50+
return fig
6051

6152

6253
@check_figures_equal()

0 commit comments

Comments
 (0)