Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e142d commit 2df0492Copy full SHA for 2df0492
1 file changed
lib/matplotlib/tests/test_artist.py
@@ -259,6 +259,16 @@ def test_setp():
259
assert sio.getvalue() == ' zorder: float\n'
260
261
262
+def test_artist_set():
263
+ line = mlines.Line2D([], [])
264
+ line.set(linewidth=7)
265
+ assert line.get_linewidth() == 7
266
+
267
+ # Property aliases should work
268
+ line.set(lw=5)
269
+ assert line.get_linewidth() == 5
270
271
272
def test_artist_set_invalid_property_raises():
273
"""
274
Test that set() raises AttributeError for invalid property names.
0 commit comments