Is there a linestyle vector in PyPlot?

Is it possible to do something like plot(xy[:,1], xy[:,2:end], linestyle=[“-”,“–”]), using PyPlot?

You can use the prop_cycler API in matplotlib.

For example:

using PyPlot, PyCall
fig, ax = plt.subplots();
cycler = pyimport("cycler").cycler;
ax.set_prop_cycle(cycler(linestyle=["-", "--", ":", "-."]))
plot(rand(10,3))

(You can also just call plot(data[:, i], linestyle=linestyles[i]) in a loop, of course.)

Thank you very much