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 5f6eee8 commit 469965bCopy full SHA for 469965b
lib/matplotlib/tests/test_axes.py
@@ -5710,6 +5710,16 @@ def test_title_xticks_top():
5710
assert ax.title.get_position()[1] > 1.04
5711
5712
5713
+def test_title_xticks_top_both():
5714
+ # Test that title moves if xticks on top of axes.
5715
+ fig, ax = plt.subplots()
5716
+ ax.tick_params(axis="x", bottom=True, top=True,
5717
+ labelbottom=True, labeltop=True)
5718
+ ax.set_title('xlabel top')
5719
+ fig.canvas.draw()
5720
+ assert ax.title.get_position()[1] > 1.04
5721
+
5722
5723
def test_offset_label_color():
5724
# Tests issue 6440
5725
fig = plt.figure()
0 commit comments