Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 374b6c0

Browse filesBrowse files
committed
TST: add small tolerances to streamplot tests
These tests did not backport cleanly from #6504
1 parent 72653f2 commit 374b6c0
Copy full SHA for 374b6c0

File tree

Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-2
lines changed

‎lib/matplotlib/tests/test_streamplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_streamplot.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def velocity_field():
1717
return X, Y, U, V
1818

1919

20-
@image_comparison(baseline_images=['streamplot_colormap'])
20+
@image_comparison(baseline_images=['streamplot_colormap'],
21+
tol=0.002)
2122
def test_colormap():
2223
X, Y, U, V = velocity_field()
2324
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,

‎lib/matplotlib/tests/test_transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_transforms.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def _as_mpl_transform(self, axes):
8181
mtrans.Affine2D().scale(10).get_matrix())
8282

8383

84-
@image_comparison(baseline_images=['pre_transform_data'])
84+
@image_comparison(baseline_images=['pre_transform_data'],
85+
tol=0.08)
8586
def test_pre_transform_plotting():
8687
# a catch-all for as many as possible plot layouts which handle
8788
# pre-transforming the data NOTE: The axis range is important in this

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.