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

Commit07883ef

Browse files
committed
Test that title is placed above and inset axes
1 parent8abe308 commit07883ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎lib/matplotlib/tests/test_axes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7118,6 +7118,18 @@ def test_title_no_move_off_page():
71187118
asserttt.get_position()[1]==1.0
71197119

71207120

7121+
deftest_title_inset_ax():
7122+
# Title should be above any child axes
7123+
mpl.rcParams['axes.titley']=None
7124+
fig,ax=plt.subplots()
7125+
ax.set_title('Title')
7126+
fig.draw_without_rendering()
7127+
assertax.title.get_position()[1]==1
7128+
ax.inset_axes([0,1,1,0.1])
7129+
fig.draw_without_rendering()
7130+
assertax.title.get_position()[1]==1.1
7131+
7132+
71217133
deftest_offset_label_color():
71227134
# Tests issue 6440
71237135
fig,ax=plt.subplots()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp