()
| 10363 | |
| 10364 | |
| 10365 | def 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 | |
| 10384 | def test_violinplot_empty_dataset(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…