-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
protecting figure with matplotlib widgets #984
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
Comments
Could you please be more specific and provide an example of creating protected figure? |
Sorry, that comment is mostly a note to my self to make linkages from those issues to this one. By 'should' here I mean 'remember to make it able to do this'. The safest way is to use the OO interface, not pyplot, that way you never are surprised about where it plots. |
This seems to have been fixed since at least 2.0, as calling |
Ubuntu Linux 10.04, matplotlib version: 0.99.1.1, backend GtkAgg;
probably the same in all later versions
There seems to be no way of protecting a GUI-only figure containing
matplotlib widgets. If this figure becomes active, any pyplot command
will draw over the widgets. As an example, this happens in the built-in
subplot_tool function where the plot command draws into the Reset box:
MATLAB deals with this issue by having a HandleVisibility and IntegerHandle
properties, which prevent a GUI figure from becoming the active one and protect
it from accidental changes. It would be surely useful to have some similar
option of protecting GUI figures in matplotlib.
The text was updated successfully, but these errors were encountered: