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

Commitd2523e0

Browse files
committed
TST: add tightbbox test
1 parent1a722d3 commitd2523e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5849,3 +5849,10 @@ class DummySubplot(matplotlib.axes.SubplotBase, Dummy):
58495849
FactoryDummySubplot=matplotlib.axes.subplot_class_factory(Dummy)
58505850

58515851
assertDummySubplotisFactoryDummySubplot
5852+
5853+
5854+
deftest_gettightbbox_ignoreNaN():
5855+
fig,ax=plt.subplots()
5856+
t=ax.text(np.NaN,1,'Boo')
5857+
renderer=fig.canvas.get_renderer()
5858+
np.testing.assert_allclose(ax.get_tightbbox(renderer).width,532.444444)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp