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 66e3a61 commit 6a19dadCopy full SHA for 6a19dad
lib/matplotlib/tests/test_axes.py
@@ -5723,6 +5723,16 @@ def test_title_xticks_top():
5723
assert ax.title.get_position()[1] > 1.04
5724
5725
5726
+def test_title_xticks_top_both():
5727
+ # Test that title moves if xticks on top of axes.
5728
+ fig, ax = plt.subplots()
5729
+ ax.tick_params(axis="x", bottom=True, top=True,
5730
+ labelbottom=True, labeltop=True)
5731
+ ax.set_title('xlabel top')
5732
+ fig.canvas.draw()
5733
+ assert ax.title.get_position()[1] > 1.04
5734
+
5735
5736
def test_offset_label_color():
5737
# Tests issue 6440
5738
fig = plt.figure()
0 commit comments