Title: No good way to disable SpanSelector · Issue #7009 · matplotlib/matplotlib · GitHub
Open Graph Title: No good way to disable SpanSelector · Issue #7009 · matplotlib/matplotlib
X Title: No good way to disable SpanSelector · Issue #7009 · matplotlib/matplotlib
Description: 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 ...
Open Graph Description: 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...
X Description: 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 refe...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7009
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No good way to disable SpanSelector","articleBody":"1.5.1 Python3.5\n\nSo 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. \n\nThe docs suggest doing `spanSelector.set_visible(False)` but in order to turn it back on again, one must use `spanSelector.set_visible(True)`. This automatically shows the last selected span, which is probably not a desirable default behavior.\n\n```\nfrom matplotlib import pyplot as plt\nimport matpltotlib\n\nax = plt.subplot(111)\ndef onSelect(m,n):\n print(m,n)\ns = matplotlib.widgets.SpanSelector(ax, onSelect, 'horizontal')\ns.set_visible(False)\ns.set_visible(True)\n```\n","author":{"url":"https://github.com/LindyBalboa","@type":"Person","name":"LindyBalboa"},"datePublished":"2016-08-30T10:14:41Z","url":"https://github.com/matplotlib/matplotlib/issues/7009"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d41c5c84-e945-62bb-f293-54f06800a393 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CF0:14394F:F2DAAD:14E913D:6B06AD0E |
| html-safe-nonce | 1906e30f43919c225dfa9686610cc8ad6c744f102cdfd322d7a123b6741a10ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0YwOjE0Mzk0RjpGMkRBQUQ6MTRFOTEzRDo2QjA2QUQwRSIsInZpc2l0b3JfaWQiOiI4Mzg4MjA3OTIxMjk3MDA5OTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1ea4c929aa938902c680dc1c5bdffa17da55eef4cc35d8a95c2648e62c6ea1ad |
| hovercard-subject-tag | issue:173981220 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/7009/issue_layout |
| twitter:image | https://opengraph.githubassets.com/057d3947f64569730bb3af3b717ab3ad61885e84cc638ecc7608d044f34a4a4b/matplotlib/matplotlib/issues/7009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/057d3947f64569730bb3af3b717ab3ad61885e84cc638ecc7608d044f34a4a4b/matplotlib/matplotlib/issues/7009 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LindyBalboa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0599d77dd29476ebb6797bcafb4d4987ea6c8fc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width