Title: [Bug]: QuiverKey's visible property cannot be properly toggled · Issue #25890 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: QuiverKey's visible property cannot be properly toggled · Issue #25890 · matplotlib/matplotlib
X Title: [Bug]: QuiverKey's visible property cannot be properly toggled · Issue #25890 · matplotlib/matplotlib
Description: Bug summary All's in the title. Code for reproduction # This is lightly modified from quiver_simple_demo.py import matplotlib.pyplot as plt import numpy as np X = np.arange(-10, 10, 1) Y = np.arange(-10, 10, 1) U, V = np.meshgrid(X, Y) f...
Open Graph Description: Bug summary All's in the title. Code for reproduction # This is lightly modified from quiver_simple_demo.py import matplotlib.pyplot as plt import numpy as np X = np.arange(-10, 10, 1) Y = np.arang...
X Description: Bug summary All's in the title. Code for reproduction # This is lightly modified from quiver_simple_demo.py import matplotlib.pyplot as plt import numpy as np X = np.arange(-10, 10, 1) Y = np.a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25890
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: QuiverKey's visible property cannot be properly toggled","articleBody":"### Bug summary\n\nAll's in the title.\n\n### Code for reproduction\n\n```python\n# This is lightly modified from quiver_simple_demo.py\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nX = np.arange(-10, 10, 1)\r\nY = np.arange(-10, 10, 1)\r\nU, V = np.meshgrid(X, Y)\r\n\r\nfig, ax = plt.subplots()\r\nq = ax.quiver(X, Y, U, V)\r\nax.quiverkey(q, X=0.3, Y=1.1, U=10,\r\n label='Quiver key, length = 10', labelpos='E', visible=False)\r\n# or\r\nax.quiverkey(q, X=0.3, Y=1.1, U=10,\r\n label='Quiver key, length = 10', labelpos='E').set_visible(False)\r\n\r\nplt.show()\n```\n\n\n### Actual outcome\n\nPassing visible=False in the constructor hides the arrow but not the label (and further calling set_visible(True) does not restore the arrow).\r\nCalling set_visible(False) has no effect.\n\n### Expected outcome\n\nset_visible(...)/visible=... correctly toggles visibility.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nmacos\n\n### Matplotlib Version\n\n3.8.0.dev1065+g10e8bf134c\n\n### Matplotlib Backend\n\nany\n\n### Python version\n\n3.11\n\n### Jupyter version\n\nenosuchlib\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2023-05-15T08:44:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25890/matplotlib/issues/25890"}
| 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:a108682a-0343-668c-aacc-0dda2e1d3dd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C0C:15F1A6:1F3ECF:288893:6A52F0E0 |
| html-safe-nonce | a9c28b2547563fbc3e2cc0c5fa3f0122fc109a2575ec2dbc81a662291e62f50b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzBDOjE1RjFBNjoxRjNFQ0Y6Mjg4ODkzOjZBNTJGMEUwIiwidmlzaXRvcl9pZCI6IjU1NjMzNDAzNTM2OTA1OTU1NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7b087661e7c0302c4d47beb0912b721bbdae5531f20a2b50b387f6e9144c0d34 |
| hovercard-subject-tag | issue:1709612085 |
| 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/25890/issue_layout |
| twitter:image | https://opengraph.githubassets.com/381b61765ef527ba91512ecaaf5d728011de75594916ce98b3b057352d7bc3e5/matplotlib/matplotlib/issues/25890 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/381b61765ef527ba91512ecaaf5d728011de75594916ce98b3b057352d7bc3e5/matplotlib/matplotlib/issues/25890 |
| og:image:alt | Bug summary All's in the title. Code for reproduction # This is lightly modified from quiver_simple_demo.py import matplotlib.pyplot as plt import numpy as np X = np.arange(-10, 10, 1) Y = np.arang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width