Title: [Bug]: pcolormesh is not responsive in Matplotlib 3.5 · Issue #21917 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: pcolormesh is not responsive in Matplotlib 3.5 · Issue #21917 · matplotlib/matplotlib
X Title: [Bug]: pcolormesh is not responsive in Matplotlib 3.5 · Issue #21917 · matplotlib/matplotlib
Description: Bug summary After updating to mpl 3.5.0 my program hangs after plotting with pcolormesh(), no error messages. It works fine witl mpl 3.3.3. When I reduce the nx,ny values in my program it works fine. Code for reproduction import numpy as...
Open Graph Description: Bug summary After updating to mpl 3.5.0 my program hangs after plotting with pcolormesh(), no error messages. It works fine witl mpl 3.3.3. When I reduce the nx,ny values in my program it works fin...
X Description: Bug summary After updating to mpl 3.5.0 my program hangs after plotting with pcolormesh(), no error messages. It works fine witl mpl 3.3.3. When I reduce the nx,ny values in my program it works fin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21917
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: pcolormesh is not responsive in Matplotlib 3.5","articleBody":"### Bug summary\n\nAfter updating to mpl 3.5.0 my program hangs after plotting with pcolormesh(), no error messages. It works fine witl mpl 3.3.3. When I reduce the nx,ny values in my program it works fine.\n\n### Code for reproduction\n\n```python\nimport numpy as np\r\n import matplotlib.pyplot as plt\r\n import cartopy.io.img_tiles as cimgt\r\n import cartopy.crs as ccrs\r\n\r\n fig, ax1 = plt.subplots(num=\"TestXX\", figsize=(30/2.54, 25/2.54))\r\n \r\n #add a map of the Netherlands\r\n request = cimgt.OSM()\r\n ax1=plt.axes(projection=request.crs)\r\n ax1.set_extent([3.25, 7.35, 50.45, 53.55],ccrs.PlateCarree())\r\n ax1.add_image(request, 10)\r\n \r\n #create a rectangular grid a little smaller than the map\r\n #with cell sizes of 0.01 degree filled with random values\r\n nx=400\r\n ny=300\r\n xedges=np.linspace(3.3, 7.3, nx)\r\n yedges=np.linspace(50.5, 53.5, ny)\r\n zvalues=np.random.random((nx, ny))\r\n \r\n ax1.pcolormesh(xedges, yedges, zvalues.T ,\\\r\n alpha=0.3, shading='auto', transform=ccrs.PlateCarree())\r\n \r\n plt.show()\n```\n\n\n### Actual outcome\n\nProgram hangs. Toolbar doesn't response. Hourglass is visible. No errors. \r\n\r\n\n\n### Expected outcome\n\nPlot has been made. Toolbar works, normal running program.\r\n\r\n\n\n### Additional information\n\nIt worked fine with matplotlib 3.3.3. I can then increase nx,ny to 8000,6000.(I didn't try higher values)\r\nIt seems that there is a 'problem' with pcolormesh(). \r\nIt works fine in mpl 3.5.0 with reduced nx,ny values(i.e. 100,75)\n\n### Operating system\n\nWindows 10\n\n### Matplotlib Version\n\n3.3.3 and 3.5.0\n\n### Matplotlib Backend\n\nQt5Agg\n\n### Python version\n\nPython 3.8.12\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nconda","author":{"url":"https://github.com/Hermeij","@type":"Person","name":"Hermeij"},"datePublished":"2021-12-10T14:53:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/21917/matplotlib/issues/21917"}
| 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:3803c494-29c5-1cfe-1064-4ad84d7458af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5B2:10C4A4:478F82:5FEC6C:6A5278DB |
| html-safe-nonce | c59cc831a1686db2e07bfd54e7d5ec171d7aa0cd6344848416b616026246931f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUIyOjEwQzRBNDo0NzhGODI6NUZFQzZDOjZBNTI3OERCIiwidmlzaXRvcl9pZCI6IjcxNTAwMjk0NDMyNDcwMTIwNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cdefeca500fe8bc2e29402581f16ea72e37364a39d5231e133f04c60ff4125eb |
| hovercard-subject-tag | issue:1076929841 |
| 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/21917/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2699fb9ecc82e10a347478b9f1d1edd9391d5e2c5f70270081c6510ac637c343/matplotlib/matplotlib/issues/21917 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2699fb9ecc82e10a347478b9f1d1edd9391d5e2c5f70270081c6510ac637c343/matplotlib/matplotlib/issues/21917 |
| og:image:alt | Bug summary After updating to mpl 3.5.0 my program hangs after plotting with pcolormesh(), no error messages. It works fine witl mpl 3.3.3. When I reduce the nx,ny values in my program it works fin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Hermeij |
| 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