FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Loosen tolerance on flaky image comparison tests · matplotlib/matplotlib@4866c27 · GitHub

Repository navigation

Commit 4866c27

Browse files
Loosen tolerance on flaky image comparison tests
1 parent 32ec84d commit 4866c27

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎lib/mpl_toolkits/mplot3d/axes3d.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ def drag_pan(self, button, key, x, y):
18661866
R = -R / self._box_aspect * self._dist
18671867
duvw_projected = R.T @ np.array([du, dv, dw])
18681868

1869-
# Calculate pan distance in transformed coordinates for non-linear scale handling
1869+
# Calculate pan distance in transformed coordinates for non-linear scales
18701870
minx, maxx, miny, maxy, minz, maxz = self._get_scaled_limits()
18711871
dx = (maxx - minx) * duvw_projected[0]
18721872
dy = (maxy - miny) * duvw_projected[1]
@@ -2020,7 +2020,7 @@ def _get_w_centers_ranges(self):
20202020
For non-linear scales (log, symlog, etc.), centers and ranges are
20212021
computed in transformed coordinates to ensure uniform zoom/pan behavior.
20222022
"""
2023-
# Get limits in transformed coordinates for proper zoom/pan with non-linear scales
2023+
# Get limits in transformed coordinates for non-linear scale zoom/pan
20242024
minx, maxx, miny, maxy, minz, maxz = self._get_scaled_limits()
20252025
cx = (maxx + minx)/2
20262026
cy = (maxy + miny)/2

‎lib/mpl_toolkits/mplot3d/tests/test_axes3d.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2818,7 +2818,7 @@ def _make_triangulation_data():
28182818
return x, y, z
28192819

28202820

2821-
@mpl3d_image_comparison(['scale3d_lines_log.png'], style='mpl20')
2821+
@mpl3d_image_comparison(['scale3d_lines_log.png'], style='mpl20', tol=0.03)
28222822
def test_scale3d_lines_log():
28232823
"""Test Line3D and Line3DCollection with log scale (plot, wireframe)."""
28242824
fig = plt.figure()
@@ -2878,7 +2878,7 @@ def test_scale3d_bar3d_log():
28782878
ax.set(xscale='log', yscale='log', zscale='log')
28792879

28802880

2881-
@mpl3d_image_comparison(['scale3d_contour_log.png'], style='mpl20')
2881+
@mpl3d_image_comparison(['scale3d_contour_log.png'], style='mpl20', tol=0.03)
28822882
def test_scale3d_contour_log():
28832883
"""Test contour and contourf with log scale."""
28842884
fig = plt.figure()
@@ -2895,7 +2895,7 @@ def test_scale3d_contour_log():
28952895
ax2.set(xscale='log', yscale='log', zscale='log')
28962896

28972897

2898-
@mpl3d_image_comparison(['scale3d_stem_quiver_log.png'], style='mpl20')
2898+
@mpl3d_image_comparison(['scale3d_stem_quiver_log.png'], style='mpl20', tol=0.03)
28992899
def test_scale3d_stem_quiver_log():
29002900
"""Test stem and quiver with log scale."""
29012901
fig = plt.figure()

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL