Skip to content

Commit 7700ea1

Browse files
Migrate test_contour to use dvc (#1146)
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 0a244c6 commit 7700ea1

File tree

7 files changed

+17
-5
lines changed

7 files changed

+17
-5
lines changed
-66.5 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
outs:
2+
- md5: 68c12988f1bb0dbc67da560fe4d51ea2
3+
size: 64936
4+
path: test_contour_from_file.png
-54.5 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
outs:
2+
- md5: 7a8e0d23ce325cef3be12da033ab2602
3+
size: 75839
4+
path: test_contour_matrix.png
-91.4 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
outs:
2+
- md5: 8bae58cc9d84de9ff9c30f3d45792dc5
3+
size: 87570
4+
path: test_contour_vec.png

pygmt/tests/test_contour.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def test_contour_fail_no_data(data):
6262
z=data[:, 2],
6363
data=data,
6464
region=region,
65-
projection="X4i",
65+
projection="X10c",
6666
style="c0.2c",
6767
color="red",
6868
frame="afg",
69-
pen="",
69+
pen=True,
7070
)
7171

7272

@@ -83,7 +83,7 @@ def test_contour_vec(region):
8383
y = y.flatten()
8484
z = (x - 0.5 * (region[0] + region[1])) ** 2 + 4 * y ** 2
8585
z = np.exp(-z / 10 ** 2 * np.log(2))
86-
fig.contour(x=x, y=y, z=z, projection="X4i", region=region, frame="a", pen="")
86+
fig.contour(x=x, y=y, z=z, projection="X10c", region=region, frame="a", pen=True)
8787
return fig
8888

8989

@@ -93,7 +93,7 @@ def test_contour_matrix(data, region):
9393
Plot data.
9494
"""
9595
fig = Figure()
96-
fig.contour(data=data, projection="X3i", region=region, frame="ag", pen="")
96+
fig.contour(data=data, projection="X10c", region=region, frame="ag", pen=True)
9797
return fig
9898

9999

@@ -104,6 +104,6 @@ def test_contour_from_file(region):
104104
"""
105105
fig = Figure()
106106
fig.contour(
107-
data=POINTS_DATA, projection="X4i", region=region, frame="af", pen="#ffcb87"
107+
data=POINTS_DATA, projection="X10c", region=region, frame="af", pen="#ffcb87"
108108
)
109109
return fig

0 commit comments

Comments
 (0)