Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3901966

Browse files
committed
TST: updated test images
1 parent 326b471 commit 3901966

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed
Binary file not shown.

lib/matplotlib/tests/baseline_images/test_contour/contour_manual_labels.svg

Lines changed: 17 additions & 6 deletions
Loading

lib/matplotlib/tests/test_contour.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,14 @@ def test_contour_uniform_z():
171171
assert len(record) == 1
172172

173173

174-
@image_comparison(baseline_images=['contour_manual_labels'])
174+
@image_comparison(baseline_images=['contour_manual_labels'],
175+
savefig_kwarg={'dpi': 200})
175176
def test_contour_manual_labels():
176177

177178
x, y = np.meshgrid(np.arange(0, 10), np.arange(0, 10))
178179
z = np.max(np.dstack([abs(x), abs(y)]), 2)
179180

180-
plt.figure(figsize=(6, 2))
181+
plt.figure(figsize=(6, 2), dpi=200)
181182
cs = plt.contour(x, y, z)
182183
pts = np.array([(1.5, 3.0), (1.5, 4.4), (1.5, 6.0)])
183184
plt.clabel(cs, manual=pts)

0 commit comments

Comments
 (0)