meaning of: line, =

ast nomail at invalid.com
Wed Feb 4 09:08:42 EST 2015


hello

I dont understand why there is a comma just after line in the following 
command:

line, = plt.plot(x, np.sin(x), '--', linewidth=2)


I never saw that before

Found here:
http://matplotlib.org/examples/lines_bars_and_markers/line_demo_dash_control.html

thanks



More information about the Python-list mailing list