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

Function test_relative_ticklabel_sizes

lib/matplotlib/tests/test_axes.py:9172–9180  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

9170 if size is not None] + [8, 10, 12])
9171@mpl.style.context('default')
9172def test_relative_ticklabel_sizes(size):
9173 mpl.rcParams['xtick.labelsize'] = size
9174 mpl.rcParams['ytick.labelsize'] = size
9175 fig, ax = plt.subplots()
9176 fig.canvas.draw()
9177
9178 for name, axis in zip(['x', 'y'], [ax.xaxis, ax.yaxis]):
9179 for tick in axis.get_major_ticks():
9180 assert tick.label1.get_size() == axis._get_tick_label_size(name)
9181
9182
9183def test_multiplot_autoscale():

Callers

nothing calls this directly

Calls 5

_get_tick_label_sizeMethod · 0.80
subplotsMethod · 0.45
drawMethod · 0.45
get_major_ticksMethod · 0.45
get_sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…