Title: [Bug]: imshow() truncates large arrays · Issue #25561 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: imshow() truncates large arrays · Issue #25561 · matplotlib/matplotlib
X Title: [Bug]: imshow() truncates large arrays · Issue #25561 · matplotlib/matplotlib
Description: Bug summary 2D arrays with more than about 8.000.000 columns are truncated on the right side. Code for reproduction import numpy as np from matplotlib import pyplot for length in range(6000000,10000000,500000): s = .5 * np.sin(np.linspac...
Open Graph Description: Bug summary 2D arrays with more than about 8.000.000 columns are truncated on the right side. Code for reproduction import numpy as np from matplotlib import pyplot for length in range(6000000,1000...
X Description: Bug summary 2D arrays with more than about 8.000.000 columns are truncated on the right side. Code for reproduction import numpy as np from matplotlib import pyplot for length in range(6000000,1000...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/25561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: imshow() truncates large arrays","articleBody":"### Bug summary\n\n2D arrays with more than about 8.000.000 columns are truncated on the right side. \n\n### Code for reproduction\n\n```python\nimport numpy as np\r\nfrom matplotlib import pyplot\r\n\r\nfor length in range(6000000,10000000,500000):\r\n s = .5 * np.sin(np.linspace(0,6*np.pi,length))\r\n pyplot.plot(s)\r\n pyplot.imshow(s.reshape((1,len(s))),aspect='auto',cmap='seismic')\r\n pyplot.show()\n```\n\n\n### Actual outcome\n\n\r\n\r\nImage truncated on the right if length \u003e 8000000.\n\n### Expected outcome\n\n\r\n\r\nExpected same outcome independent of length.\r\n\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nWindows 10\n\n### Matplotlib Version\n\n3.1.0\n\n### Matplotlib Backend\n\nmodule://ipykernel.pylab.backend_inline\n\n### Python version\n\n3.7.3\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/rcasperson","@type":"Person","name":"rcasperson"},"datePublished":"2023-03-27T11:51:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/25561/matplotlib/issues/25561"}
| 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:c15b39c3-eec6-4ebe-f4ef-a0faf69c9491 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9454:289E91:BB116B:10E2689:6A54A5E3 |
| html-safe-nonce | 7722442a7a53e3162fc9df9472afff96487af794ffba34f9418cac905dc26b4f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDU0OjI4OUU5MTpCQjExNkI6MTBFMjY4OTo2QTU0QTVFMyIsInZpc2l0b3JfaWQiOiIyNDcxNzMwOTQ3MzcwMDM0NjU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 165d7ed67b25b8523a6f0470d15bbbbd2dce8be7f36ed23f590d0dd01359caef |
| hovercard-subject-tag | issue:1641972032 |
| 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/25561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/523c0893a0bfb44471d86724f670309d38bf8b6162422840133cffe9d49c3cf6/matplotlib/matplotlib/issues/25561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/523c0893a0bfb44471d86724f670309d38bf8b6162422840133cffe9d49c3cf6/matplotlib/matplotlib/issues/25561 |
| og:image:alt | Bug summary 2D arrays with more than about 8.000.000 columns are truncated on the right side. Code for reproduction import numpy as np from matplotlib import pyplot for length in range(6000000,1000... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rcasperson |
| 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 | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width