Yotam Yotam - 1 year ago 129
Python Question

Is there a list of line styles in matplotlib?

I'm writing a script that will do some plotting. I want it to plot several data series, each with its unique line style (not color). I can easily iterate through a list, but is there such a list already available in python?

Answer Source

According to the doc you could find them by doing this :

from matplotlib import lines
>>> ['', ' ', 'None', '--', '-.', '-', ':']

You can do the same with markers

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download