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

Function test_artist_set

lib/matplotlib/tests/test_artist.py:259–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257
258
259def test_artist_set():
260 line = mlines.Line2D([], [])
261 line.set(linewidth=7)
262 assert line.get_linewidth() == 7
263
264 # Property aliases should work
265 line.set(lw=5)
266 assert line.get_linewidth() == 5
267
268
269def test_artist_set_invalid_property_raises():

Callers

nothing calls this directly

Calls 2

get_linewidthMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…