Maddox Flower <[EMAIL PROTECTED]> writes:

> What fails me is how to make a legend with the appropriate 'combined'
> line style '-ro'?

Make the legend first with only the line, then modify the line within
the legend:

from numpy import arange, sin
x = arange( 0., 1., 0.001 )
y = sin( 50*x )
line = plot(x, y, '-r')
markers = plot(x[::20], y[::20], 'ro')
lgd = legend([line], ['data'], numpoints=3)
lgd.get_lines()[0].set_marker('o')
draw()

-- 
Jouni K. Seppänen
http://www.iki.fi/jks


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to