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 b47071b commit de80a64Copy full SHA for de80a64
lib/matplotlib/tests/test_axes.py
@@ -5389,6 +5389,16 @@ def test_titlesetpos():
5389
assert ax.title.get_position() == pos
5390
5391
5392
+def test_title_xticks_top():
5393
+ # Test that title stays put if we set it manually
5394
+
5395
+ fig, ax = plt.subplots()
5396
+ ax.xaxis.set_ticks_position('top')
5397
+ ax.set_title('xlabel top') # increase padding to make room for labels
5398
+ fig.canvas.draw()
5399
+ assert ax.title.get_position()[1] > 1.04
5400
5401
5402
def test_offset_label_color():
5403
# Tests issue 6440
5404
fig = plt.figure()
0 commit comments