The following works for me.
from pylab import *
plot([1,2,3], linestyle='dashed', label='foo')
legend()
show()
Can you be more specific about how you create the error?
Mike
Carlos Grohmann wrote:
> Hi all,
>
> I'm wirking on a wxpython app, and I realized that the legend of a
> mat
Hi all,
I'm wirking on a wxpython app, and I realized that the legend of a
matplotlib plot only works with solid lines. If I change the
linestyles to dashed, dotted or dashdot, it gives an error:
Traceback (most recent call last):
File "/home/guano/Arbeit/Stout/StereoPanel.py", line 551, in Plo