| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 32ec84d commit 4866c27
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1866,7 +1866,7 @@ def drag_pan(self, button, key, x, y): | |||
| 1866 | 1866 | R = -R / self._box_aspect * self._dist | |
| 1867 | 1867 | duvw_projected = R.T @ np.array([du, dv, dw]) | |
| 1868 | 1868 | ||
| 1869 | - # Calculate pan distance in transformed coordinates for non-linear scale handling | ||
| 1869 | + # Calculate pan distance in transformed coordinates for non-linear scales | ||
| 1870 | 1870 | minx, maxx, miny, maxy, minz, maxz = self._get_scaled_limits() | |
| 1871 | 1871 | dx = (maxx - minx) * duvw_projected[0] | |
| 1872 | 1872 | dy = (maxy - miny) * duvw_projected[1] | |
@@ -2020,7 +2020,7 @@ def _get_w_centers_ranges(self): | |||
| 2020 | 2020 | For non-linear scales (log, symlog, etc.), centers and ranges are | |
| 2021 | 2021 | computed in transformed coordinates to ensure uniform zoom/pan behavior. | |
| 2022 | 2022 | """ | |
| 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 | ||
| 2024 | 2024 | minx, maxx, miny, maxy, minz, maxz = self._get_scaled_limits() | |
| 2025 | 2025 | cx = (maxx + minx)/2 | |
| 2026 | 2026 | cy = (maxy + miny)/2 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2818,7 +2818,7 @@ def _make_triangulation_data(): | |||
| 2818 | 2818 | return x, y, z | |
| 2819 | 2819 | ||
| 2820 | 2820 | ||
| 2821 | - @mpl3d_image_comparison(['scale3d_lines_log.png'], style='mpl20') | ||
| 2821 | + @mpl3d_image_comparison(['scale3d_lines_log.png'], style='mpl20', tol=0.03) | ||
| 2822 | 2822 | def test_scale3d_lines_log(): | |
| 2823 | 2823 | """Test Line3D and Line3DCollection with log scale (plot, wireframe).""" | |
| 2824 | 2824 | fig = plt.figure() | |
@@ -2878,7 +2878,7 @@ def test_scale3d_bar3d_log(): | |||
| 2878 | 2878 | ax.set(xscale='log', yscale='log', zscale='log') | |
| 2879 | 2879 | ||
| 2880 | 2880 | ||
| 2881 | - @mpl3d_image_comparison(['scale3d_contour_log.png'], style='mpl20') | ||
| 2881 | + @mpl3d_image_comparison(['scale3d_contour_log.png'], style='mpl20', tol=0.03) | ||
| 2882 | 2882 | def test_scale3d_contour_log(): | |
| 2883 | 2883 | """Test contour and contourf with log scale.""" | |
| 2884 | 2884 | fig = plt.figure() | |
@@ -2895,7 +2895,7 @@ def test_scale3d_contour_log(): | |||
| 2895 | 2895 | ax2.set(xscale='log', yscale='log', zscale='log') | |
| 2896 | 2896 | ||
| 2897 | 2897 | ||
| 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) | ||
| 2899 | 2899 | def test_scale3d_stem_quiver_log(): | |
| 2900 | 2900 | """Test stem and quiver with log scale.""" | |
| 2901 | 2901 | fig = plt.figure() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments