I am probably missing something obvious. I'm plotting the data contained in the columns of a matrix in a single call using
plot(x,A)
where is x
is a 1D numpy arange with a length equal to the number of rows of A.
The lineplots this generates are all full lines with a color cycling through the default color cycle set in matplotlib.rc
I know I can modify the color cycle (and can even have a single color and linestyle for all columns). However how can I only cycle the line styles (say through full, dashed, dash-dotted, dotted) and not the color (I want to keep it black) and still keep the simple SINGLE plot call ?
plot(x,A,['k-','k--','k-.','k:'])
doesn't work.