MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_title_xticks_top

Function test_title_xticks_top

lib/matplotlib/tests/test_axes.py:7917–7924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7915
7916
7917def test_title_xticks_top():
7918 # Test that title moves if xticks on top of axes.
7919 mpl.rcParams['axes.titley'] = None
7920 fig, ax = plt.subplots()
7921 ax.xaxis.set_ticks_position('top')
7922 ax.set_title('xlabel top')
7923 fig.canvas.draw()
7924 assert ax.title.get_position()[1] > 1.04
7925
7926
7927def test_title_xticks_top_both():

Callers

nothing calls this directly

Calls 5

subplotsMethod · 0.45
set_ticks_positionMethod · 0.45
set_titleMethod · 0.45
drawMethod · 0.45
get_positionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…