Title: [Bug]: Plot window not shown in Mac OS with backend set to default MacOSX · Issue #26869 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Plot window not shown in Mac OS with backend set to default MacOSX · Issue #26869 · matplotlib/matplotlib
X Title: [Bug]: Plot window not shown in Mac OS with backend set to default MacOSX · Issue #26869 · matplotlib/matplotlib
Description: Bug summary Under version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set to TkAgg. Code for reproduction import ...
Open Graph Description: Bug summary Under version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set...
X Description: Bug summary Under version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26869
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Plot window not shown in Mac OS with backend set to default MacOSX","articleBody":"### Bug summary\n\nUnder version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set to TkAgg.\n\n### Code for reproduction\n\n```python\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nfrom matplotlib import cm\r\n\r\n# matplotlib.use(backend=\"TkAgg\")\r\n\r\nplt.style.use(\"_mpl-gallery\")\r\n\r\n# Make data\r\nX = np.arange(-5, 5, 0.25)\r\nY = np.arange(-5, 5, 0.25)\r\nX, Y = np.meshgrid(X, Y)\r\nR = np.sqrt(X**2 + Y**2)\r\nZ = np.sin(R)\r\n\r\n# Plot the surface\r\nfig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})\r\nax.plot_surface(X, Y, Z, vmin=Z.min() * 2, cmap=cm.Blues)\r\n\r\nax.set(xticklabels=[], yticklabels=[], zticklabels=[])\r\n\r\nplt.show(block=False)\r\n\r\ninput(\"Hit [return] to end\")\r\nplt.close(\"all\")\n```\n\n\n### Actual outcome\n\nNo plot is generated.\r\n\n\n### Expected outcome\n\n\r\n\n\n### Additional information\n\nIf the code line\r\n# matplotlib.use(backend=\"TkAgg\")\r\nis uncommented the code will work as expected.\n\n### Operating system\n\nMac OS 13.5.2\n\n### Matplotlib Version\n\n3.8.0\n\n### Matplotlib Backend\n\nMacOSX\n\n### Python version\n\n3.11.5\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nconda","author":{"url":"https://github.com/CarrascoCesar","@type":"Person","name":"CarrascoCesar"},"datePublished":"2023-09-22T16:22:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/26869/matplotlib/issues/26869"}
| 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:19063aaa-7c87-2827-48f2-ba91ae90184e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2A2:10D8A9:1F4D73:2CC4BE:6A535D6C |
| html-safe-nonce | e11c023d64af5a4e2227d7c91d4a8efde97d211f3b0229dc3536f20bbac0be45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkEyOjEwRDhBOToxRjRENzM6MkNDNEJFOjZBNTM1RDZDIiwidmlzaXRvcl9pZCI6IjQ1NDExMzczNTEyNjM2MDgxNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4d3195977367ee29573a24e085e50c89125ce131719ae14786a39015b3a9bbb3 |
| hovercard-subject-tag | issue:1909197287 |
| 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/26869/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4a91ba5f7cd559003a9674b5328b7bf79f52bca1f11f17020d777a2b6de97605/matplotlib/matplotlib/issues/26869 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4a91ba5f7cd559003a9674b5328b7bf79f52bca1f11f17020d777a2b6de97605/matplotlib/matplotlib/issues/26869 |
| og:image:alt | Bug summary Under version 3.8.0 the plot window does not appear when using MacOSX as the backend (default under Mac OS). This is not an issues with the previous 3.7.3 version or when backend is set... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CarrascoCesar |
| 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