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

Function test_tick_param_labelfont

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

Source from the content-addressed store, hash-verified

9940
9941
9942def test_tick_param_labelfont():
9943 fig, ax = plt.subplots()
9944 ax.plot([1, 2, 3, 4], [1, 2, 3, 4])
9945 ax.set_xlabel('X label in Impact font', fontname='Impact')
9946 ax.set_ylabel('Y label in xkcd script', fontname='xkcd script')
9947 ax.tick_params(color='r', labelfontfamily='monospace')
9948 plt.title('Title in sans-serif')
9949 for text in ax.get_xticklabels():
9950 assert text.get_fontfamily()[0] == 'monospace'
9951
9952
9953def test_set_secondary_axis_color():

Callers

nothing calls this directly

Calls 6

set_xlabelMethod · 0.80
set_ylabelMethod · 0.80
get_fontfamilyMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
tick_paramsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…