Hello everyone,
Newbie alert.
How do I set the attributes of Line2D instance? I have:
origline = plt.plot(origlist)
valine = plt.plot(valist)
plt.xlim(0,256)
valine.set_color('r')
valine.set_linewidth(2)
I get:
Traceback (most recent call last):
File "C:/Python26/loadavg2.py", line 121, in <module>
plotit(valist, smalist)
File "C:/Python26/loadavg2.py", line 106, in plotit
valine.set_color('r')
AttributeError: 'list' object has no attribute 'set_color'
WTF?? After all, Line2D api docs, e.g.
http://matplotlib.sourceforge.net/api/artist_api.html#matplotlib.lines.Line2D.set_color
clearly state there is set_color method to the Line2D instance!
I get the same error with get_* methods.
Regards,
mk