New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable legend on matplotlib.axes instance #2792
Comments
On 2014/02/05 10:33 AM, Ganesh N Sivalingam wrote:
Presumably you mean ax.get_legend().set_visible(False) That is not a hack, it is an intended use of the set_visible method. Ideally, it would also be possible to use ax.get_legend().remove() but this is not implemented. Eric
|
Sorry yes that's what I meant, updated the question. Could there be performance implications with the potential for having several hidden legends? Thank you |
@efiring I sent this over here from SO. My view is the point of this issue is to add the |
@cimarronm looks like #2798 has this in hand. Closing this issue in favour of that PR. |
Could we please have the functionality to disable the legend once its been instantiated?
e.g.
From my StackOverflow question (http://stackoverflow.com/questions/21587318/matplotlib-cancel-legend-on-axes-object?noredirect=1#comment32612205_21587318) I have been advised to request this feature.
I also found the problem could be solved with the hack:
The text was updated successfully, but these errors were encountered: