-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
No good way to disable SpanSelector #7009
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
It seems it inherits through _SelectorWidget and AxesWidget an Otherwise, I still don't understand why the operates if the widget is deleted. |
Just document that setting We are (long term) planning to move away from all the Are you sure something else does not keep a reference to it? It only goes away if it gets garbage collected (as the callbacks only hold a weakref to it). It is also possible that The widgets are sorely under documented. Also see #5786 |
Add reference to AxesWidget.active for disabling the selector. Resolves matplotlib#7009
Add reference to AxesWidget.active for disabling the selector. Resolves matplotlib#7009
Add reference to AxesWidget.active for disabling the selector. Resolves matplotlib#7009
Add reference to AxesWidget.active for disabling the selector. Resolves matplotlib#7009
Uh oh!
There was an error while loading. Please reload this page.
1.5.1 Python3.5
So it seems SpanSelector has no built in method to shut down. The docs say "For the selector to remain responsive you must keep a reference to it." but even without a reference, the behavior persists. I attempted doing a
del spanSelector
but the behavior persisted.The docs suggest doing
spanSelector.set_visible(False)
but in order to turn it back on again, one must usespanSelector.set_visible(True)
. This automatically shows the last selected span, which is probably not a desirable default behavior.The text was updated successfully, but these errors were encountered: