(
rc_lines_linewidth, rc_contour_linewidth, call_linewidths, expected)
| 482 | (1.23, 4.24, 5.02, 5.02) |
| 483 | ]) |
| 484 | def test_contour_linewidth( |
| 485 | rc_lines_linewidth, rc_contour_linewidth, call_linewidths, expected): |
| 486 | |
| 487 | with rc_context(rc={"lines.linewidth": rc_lines_linewidth, |
| 488 | "contour.linewidth": rc_contour_linewidth}): |
| 489 | fig, ax = plt.subplots() |
| 490 | X = np.arange(4*3).reshape(4, 3) |
| 491 | cs = ax.contour(X, linewidths=call_linewidths) |
| 492 | assert cs.get_linewidths()[0] == expected |
| 493 | |
| 494 | |
| 495 | @pytest.mark.backend("pdf") |
nothing calls this directly
no test coverage detected
searching dependent graphs…