Title: [Bug]: Cursor blitting produces CheckButton issue (backend-agnostic) · Issue #25670 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Cursor blitting produces CheckButton issue (backend-agnostic) · Issue #25670 · matplotlib/matplotlib
X Title: [Bug]: Cursor blitting produces CheckButton issue (backend-agnostic) · Issue #25670 · matplotlib/matplotlib
Description: Bug summary Whenever CheckButtons are within a plot area, the useblit=True (in a cursor for example) produces visual errors with the buttons when the mouse is within the plot area so the cursor is active. The issue seems to be backend-ag...
Open Graph Description: Bug summary Whenever CheckButtons are within a plot area, the useblit=True (in a cursor for example) produces visual errors with the buttons when the mouse is within the plot area so the cursor is ...
X Description: Bug summary Whenever CheckButtons are within a plot area, the useblit=True (in a cursor for example) produces visual errors with the buttons when the mouse is within the plot area so the cursor is ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25670
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Cursor blitting produces CheckButton issue (backend-agnostic)","articleBody":"### Bug summary\n\nWhenever CheckButtons are within a plot area, the `useblit=True` (in a cursor for example) produces visual errors with the buttons when the mouse is within the plot area so the cursor is active. The issue seems to be backend-agnostic (confirmed in Qt5Agg and TkAgg for now).\n\n### Code for reproduction\n\n```python\nimport matplotlib, matplotlib.pyplot\r\n\r\ncheckbutton1 = False\r\ncheckbutton2 = True\r\n\r\nfigure = matplotlib.pyplot.figure()\r\nmatplotlib.pyplot.subplots_adjust(top=0.9) # no bug without this line or if margin large enough\r\n\r\nax = figure.add_subplot()\r\nax_cursor = matplotlib.widgets.Cursor(ax, useblit=True) # no bug with useblit=False\r\n\r\nax_settings = matplotlib.pyplot.axes([0.8, 0.8, 0.1, 0.1])\r\ninput_settings = matplotlib.widgets.CheckButtons(ax_settings, [\"Set1\", \"Set2\"], [checkbutton1, checkbutton2])\r\n\r\nmatplotlib.pyplot.show()\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\nThe check mark for _Set2_ is missing even though `checkbutton2 = True`. When the mouse leaves the area and deactivates cursor, the check mark reappears.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nGNU/Linux\n\n### Matplotlib Version\n\n3.7.1\n\n### Matplotlib Backend\n\nTkAgg, Qt5Agg\n\n### Python version\n\n3.10.10\n\n### Jupyter version\n\nno Jupyter\n\n### Installation\n\nLinux package manager","author":{"url":"https://github.com/drws","@type":"Person","name":"drws"},"datePublished":"2023-04-12T08:17:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/25670/matplotlib/issues/25670"}
| 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:0520c912-b094-5173-2d01-fdde28b527d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDD4:32982F:951766:C99938:6A51E15F |
| html-safe-nonce | ae6b60c655438985be874f95f7898aa1853b118df18f4c5c7f610b5fd84015f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREQ0OjMyOTgyRjo5NTE3NjY6Qzk5OTM4OjZBNTFFMTVGIiwidmlzaXRvcl9pZCI6Ijc0MjYzNzgyOTkxODA0NDE5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd5c06c766bc2098ab5efc6ee1ddaf2823fc4d0feb610c25a7036ef04bdf24fc |
| hovercard-subject-tag | issue:1664080161 |
| 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/25670/issue_layout |
| twitter:image | https://opengraph.githubassets.com/918eef52c21fd82610d271017d75322f9d58af179f1f49ddd07943df4346375c/matplotlib/matplotlib/issues/25670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/918eef52c21fd82610d271017d75322f9d58af179f1f49ddd07943df4346375c/matplotlib/matplotlib/issues/25670 |
| og:image:alt | Bug summary Whenever CheckButtons are within a plot area, the useblit=True (in a cursor for example) produces visual errors with the buttons when the mouse is within the plot area so the cursor is ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drws |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width