Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitda641b3

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR#30624: TST: Increase tolerances for Ghostscript 10.06
1 parentba59282 commitda641b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_bbox_tight.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_bbox_inches_tight_clipping():
108108
plt.gcf().artists.append(patch)
109109

110110

111-
@image_comparison(['bbox_inches_tight_raster'],
111+
@image_comparison(['bbox_inches_tight_raster'],tol=0.15,# For Ghostscript 10.06+.
112112
remove_text=True,savefig_kwarg={'bbox_inches':'tight'})
113113
deftest_bbox_inches_tight_raster():
114114
"""Test rasterization with tight_layout"""

‎lib/matplotlib/tests/test_image.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_alpha_interp():
3737
axr.imshow(img,interpolation="bilinear")
3838

3939

40-
@image_comparison(['interp_nearest_vs_none'],
40+
@image_comparison(['interp_nearest_vs_none'],tol=3.7,# For Ghostscript 10.06+.
4141
extensions=['pdf','svg'],remove_text=True)
4242
deftest_interp_nearest_vs_none():
4343
"""Test the effect of "nearest" and "none" interpolation"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp