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 8abe308 commit 1dfc773Copy full SHA for 1dfc773
lib/matplotlib/tests/test_axes.py
@@ -7118,6 +7118,18 @@ def test_title_no_move_off_page():
7118
assert tt.get_position()[1] == 1.0
7119
7120
7121
+def test_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
+ assert ax.title.get_position()[1] == 1
7128
+ ax.inset_axes([0, 1, 1, 0.1])
7129
7130
+ assert ax.title.get_position()[1] == 1.1
7131
+
7132
7133
def test_offset_label_color():
7134
# Tests issue 6440
7135
fig, ax = plt.subplots()
0 commit comments