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

Function test_contour_linewidth

lib/matplotlib/tests/test_contour.py:484–492  ·  view source on GitHub ↗
(
        rc_lines_linewidth, rc_contour_linewidth, call_linewidths, expected)

Source from the content-addressed store, hash-verified

482 (1.23, 4.24, 5.02, 5.02)
483 ])
484def 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")

Callers

nothing calls this directly

Calls 4

rc_contextFunction · 0.90
get_linewidthsMethod · 0.80
subplotsMethod · 0.45
contourMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…