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

Commitc4d7dff

Browse files
committed
Increase some tolerances for wasm
1 parente930255 commitc4d7dff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8158,7 +8158,7 @@ def test_normal_axes():
81588158
]
81598159
fornn,binenumerate(bbaxis):
81608160
targetbb=mtransforms.Bbox.from_bounds(*target[nn])
8161-
assert_array_almost_equal(b.bounds,targetbb.bounds,decimal=2)
8161+
assert_array_almost_equal(b.bounds,targetbb.bounds,decimal=1)
81628162

81638163
target= [
81648164
[150.0,119.999,930.0,11.111],
@@ -8176,7 +8176,7 @@ def test_normal_axes():
81768176

81778177
target= [85.5138,75.88888,1021.11,1017.11]
81788178
targetbb=mtransforms.Bbox.from_bounds(*target)
8179-
assert_array_almost_equal(bbtb.bounds,targetbb.bounds,decimal=2)
8179+
assert_array_almost_equal(bbtb.bounds,targetbb.bounds,decimal=1)
81808180

81818181
# test that get_position roundtrips to get_window_extent
81828182
axbb=ax.get_position().transformed(fig.transFigure).bounds

‎lib/matplotlib/tests/test_legend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,10 @@ def test_figure_legend_outside():
513513
leg=fig.legend(loc='outside '+todo)
514514
fig.draw_without_rendering()
515515

516-
assert_allclose(axs.get_window_extent().extents,
517-
axbb[nn])
518-
assert_allclose(leg.get_window_extent().extents,
519-
legbb[nn])
516+
assert_allclose(axs.get_window_extent().extents,axbb[nn],
517+
rtol=1)
518+
assert_allclose(leg.get_window_extent().extents,legbb[nn],
519+
rtol=1)
520520

521521

522522
@image_comparison(['legend_stackplot.png'],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp