Menu

[r6044]: / trunk / course / snippets / mpl_plot_line.ipy  Maximize  Restore  History

Download this file

10 lines (6 with data), 211 Bytes

In [2]: x = rand(20); y = rand(20)
 
In [3]: lines = plot(x,y,'o')
 
In [4]: type(lines)        # plot always returns a list
Out[4]: <type 'list'>
 
In [5]: len(lines)         # even if it is length 1
Out[5]: 1
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.