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

Function test_invalid_line_data

lib/matplotlib/tests/test_lines.py:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_invalid_line_data():
42 with pytest.raises(RuntimeError, match='xdata must be'):
43 mlines.Line2D(0, [])
44 with pytest.raises(RuntimeError, match='ydata must be'):
45 mlines.Line2D([], 1)
46
47 line = mlines.Line2D([], [])
48 with pytest.raises(RuntimeError, match='x must be'):
49 line.set_xdata(0)
50 with pytest.raises(RuntimeError, match='y must be'):
51 line.set_ydata(0)
52
53
54@image_comparison(['line_dashes'], remove_text=True, style='_classic_test', tol=0.003)

Callers

nothing calls this directly

Calls 2

set_xdataMethod · 0.95
set_ydataMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…