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

Function test_rc_axes_label_formatting

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

Source from the content-addressed store, hash-verified

9880
9881@mpl.style.context('default')
9882def test_rc_axes_label_formatting():
9883 mpl.rcParams['axes.labelcolor'] = 'red'
9884 mpl.rcParams['axes.labelsize'] = 20
9885 mpl.rcParams['axes.labelweight'] = 'bold'
9886
9887 ax = plt.axes()
9888 assert ax.xaxis.label.get_color() == 'red'
9889 assert ax.xaxis.label.get_fontsize() == 20
9890 assert ax.xaxis.label.get_fontweight() == 'bold'
9891
9892
9893@check_figures_equal()

Callers

nothing calls this directly

Calls 4

get_fontweightMethod · 0.80
axesMethod · 0.45
get_colorMethod · 0.45
get_fontsizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…