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

Function test_repr

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

Source from the content-addressed store, hash-verified

67
68
69def test_repr():
70 fig, ax = plt.subplots()
71 ax.set_label('label')
72 ax.set_title('title')
73 ax.set_xlabel('x')
74 ax.set_ylabel('y')
75 assert repr(ax) == (
76 "<Axes: "
77 "label='label', title={'center': 'title'}, xlabel='x', ylabel='y'>")
78
79
80@check_figures_equal()

Callers

nothing calls this directly

Calls 5

set_xlabelMethod · 0.80
set_ylabelMethod · 0.80
subplotsMethod · 0.45
set_labelMethod · 0.45
set_titleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…