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

Function test_errorbar_uses_rcparams

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

Source from the content-addressed store, hash-verified

10363
10364
10365def test_errorbar_uses_rcparams():
10366 with mpl.rc_context({
10367 "errorbar.capsize": 5.0,
10368 "errorbar.capthick": 2.5,
10369 "errorbar.elinewidth": 1.75,
10370 }):
10371 fig, ax = plt.subplots()
10372 eb = ax.errorbar([0, 1, 2], [1, 2, 3], yerr=[0.1, 0.2, 0.3], fmt="none")
10373
10374 data_line, caplines, barlinecols = eb.lines
10375 assert data_line is None
10376 assert caplines
10377
10378 assert_allclose([cap.get_markersize() for cap in caplines], 10.0)
10379 assert_allclose([cap.get_markeredgewidth() for cap in caplines], 2.5)
10380 for barcol in barlinecols:
10381 assert_allclose(barcol.get_linewidths(), 1.75)
10382
10383
10384def test_violinplot_empty_dataset():

Callers

nothing calls this directly

Calls 5

get_markersizeMethod · 0.80
get_linewidthsMethod · 0.80
subplotsMethod · 0.45
errorbarMethod · 0.45
get_markeredgewidthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…