legend not draggable when secondary y-axis present

Any ideas?

Also, as in the example here, the legend seems to be behind the quantity being plotted against the one of the secondary y-axis…does this have anything to do with that?..it is that maybe the legend is draggable but I am not getting to it?

gsal

For the legend to be picked by mouse, it must be placed in the top most axes.

ax = subplot(111)
l1, = ax.plot([1,3,2])
ax2 = ax.twinx()
lab = ax2.legend([l1], ["test"])

I hope this clarifies your issue.
If not, please post a simple but complete example that demonstrates
your problem.

Regards,

-JJ

···

On Wed, Jan 18, 2012 at 12:53 AM, German Salazar <salgerman@...287...> wrote:

Any ideas?

Also, as in the example here, the legend seems to be behind the quantity
being plotted against the one of the secondary y-axis....does this have
anything to do with that?...it is that maybe the legend is draggable but I
am not getting to it?

gsal

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Yeap, that did the trick.

Thanks.

···

--
View this message in context: http://old.nabble.com/legend-not-draggable-when-secondary-y-axis-present-tp33163397p33266687.html
Sent from the matplotlib - users mailing list archive at Nabble.com.