Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eabfc26 commit ad16cb6Copy full SHA for ad16cb6
lib/matplotlib/tests/test_image.py
@@ -732,7 +732,11 @@ def test_log_scale_image():
732
ax.set(yscale='log')
733
734
735
-@image_comparison(['rotate_image'], remove_text=True)
+# Increased tolerance is needed for PDF test to avoid failure. After the PDF
736
+# backend was modified to use indexed color, there are ten pixels that differ
737
+# due to how the subpixel calculation is done when converting the PDF files to
738
+# PNG images.
739
+@image_comparison(['rotate_image'], remove_text=True, tol=0.35)
740
def test_rotate_image():
741
delta = 0.25
742
x = y = np.arange(-3.0, 3.0, delta)
0 commit comments