Issue
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?
Solution
According to the doc you could find them by doing this :
from matplotlib import lines
lines.lineStyles.keys()
>>> ['', ' ', 'None', '--', '-.', '-', ':']
You can do the same with markers
EDIT: In the latest versions, there are still the same styles, but you can vary the space between dots/lines.
Answered By - Cédric Julien
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.