When plotting interactively is it actually possible to update the
legend with the current plots while retaining the previous legend
settings (position, visibility, etc.) ?

here are some observations on the mpl legend operation:
leg = ax.get_legend()   #0 OK. but the recommended way to update a
legend seems to be using #1 ?
leg = ax.legend()       #1 OK
leg.draggable(True)     #3 enables the legend to be moved with mouse.
New in mpl1.0.1. OK
leg.set_visible(False)  #4 hides legend. OK
ax.legend(loc=3)        #2 defines a legend location. OK but why no
locations outside the plotting area ?
ax.legend(ax.lines)     #5 labels are different by default from #1. ??
ax.legend([])           #6 draws an empty square. ??
leg._loc:               #7 allows you to know the legend location. in
#2 value is int, in #3 value is a tuple (if the legend has been moved)
OK but why is the attribute private ?

What to exclude from a legend :
Objects without  an explicit label (labels starting with _) #8. OK
Objects that are not in the viewing area       #9.  should be default
behavior ??
Objects that are not set visible               #10. should be default
behavior ??

-- 
thanks,
peter butterworth

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to