Jouni K. Seppänen wrote: > 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()
Thanks, that's exactly what I wanted! Cheers, Maddox ------------------------------------------------------------------------- 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