> Alan said: >> Ideally I'd be able to do something like >> lgd.set_items(lgd.get_items()[slice])
On 5/5/2009 1:35 PM Jae-Joon Lee apparently wrote: > It is quite hard to modify the order of items once the legend is created. > Thus, I recommend you to order your items before creating the legend. > For example, > ax = subplot(111) > ... plot some lines > lines = ax.get_lines() > labels = [l.get_label() for l in lines] > legend(lines[::-1], labels[::-1] > I just committed some changes to the svn which makes this kind of > thing more handy. The legend guide is also updated with this. > http://dl.getdropbox.com/u/178748/mpl/legend_guid/html/legend.html#adjusting-the-order-of-legend-items > Cool. Also, the way you demo above beats the approach I took, so thanks for that too. Alan ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users