MCPcopy
hub / github.com/matplotlib/matplotlib / test_title_inset_ax

Function test_title_inset_ax

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

Source from the content-addressed store, hash-verified

7979
7980
7981def test_title_inset_ax():
7982 # Title should be above any child axes
7983 mpl.rcParams['axes.titley'] = None
7984 fig, ax = plt.subplots()
7985 ax.set_title('Title')
7986 fig.draw_without_rendering()
7987 assert ax.title.get_position()[1] == 1
7988 ax.inset_axes([0, 1, 1, 0.1])
7989 fig.draw_without_rendering()
7990 assert ax.title.get_position()[1] == 1.1
7991
7992
7993def test_offset_label_color():

Callers

nothing calls this directly

Calls 5

inset_axesMethod · 0.80
subplotsMethod · 0.45
set_titleMethod · 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…