I know how to cycle through a list of colors in matplotlib. But is it possible to do something similar with line styles (plain, dotted, dashed, etc.)? I’d need to do that so my graphs would be easier to read when printed. Any suggestions how to do that?
Share
Something like this might do the trick:
Result:

Edit for newer version (v2.22)
For more detailed information consult the matplotlib tutorial on “Styling with cycler”
To see the output click “show figure“