Title: I broke imshow(
Open Graph Title: I broke imshow(
X Title: I broke imshow(
Description: mpl2.0b3 In [4]: plt.imshow(np.random.randint(-128, 128, dtype=np.int8, size=(3, 3))) Out[4]:
Open Graph Description: mpl2.0b3 In [4]: plt.imshow(np.random.randint(-128, 128, dtype=np.int8, size=(3, 3))) Out[4]:
X Description: mpl2.0b3 In [4]: plt.imshow(np.random.randint(-128, 128, dtype=np.int8, size=(3, 3))) Out[4]: <matplotlib.image.AxesImage at 0x7fe00ba2f0f0> In [5]: /usr/lib/python3.5/site-packages/matplotli...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6825
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"I broke imshow(\u003csigned integer array\u003e) :-(","articleBody":"mpl2.0b3\n\n```\nIn [4]: plt.imshow(np.random.randint(-128, 128, dtype=np.int8, size=(3, 3)))\nOut[4]: \u003cmatplotlib.image.AxesImage at 0x7fe00ba2f0f0\u003e\n\nIn [5]: /usr/lib/python3.5/site-packages/matplotlib/colors.py:848: RuntimeWarning: overflow encos\n resdat /= (vmax - vmin)\n```\n\nand a fully black image appears.\n\nPretty sure this is due to #6700 and can be fixed by restoring the casts of vmin and vmax to a floating type. However that type should be determined as in `process_value` (i.e., `np.float32 if dtype.itemsize \u003c= 2 else np.promote_types(dtype, float)` -- see the issue for the discussion).\n\nNot making a PR yet because this (as well as the original #6700) may or may not affect the other Normalize classes too? Perhaps that's something that should be factored out.\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-07-24T23:31:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6825/matplotlib/issues/6825"}
| 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:d4d31f39-94c3-f164-b50c-c7d4a7192b76 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE62:166AAB:A6FD85:E0EA0B:6A531464 |
| html-safe-nonce | 71eb6499727e9ec0752eb94325727fb9d300f4e3145c910dfd5d6b513b4fabd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTYyOjE2NkFBQjpBNkZEODU6RTBFQTBCOjZBNTMxNDY0IiwidmlzaXRvcl9pZCI6IjMxNDEzMDcxMDE3NTE3NDM1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b356d74388e5454222ddc927bc74b7642eb7f20bca5092f675176c815bb1e16 |
| hovercard-subject-tag | issue:167260783 |
| 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/6825/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6bb5a0878402e8c644f37a7a7608b66c61faaddb76532b54c971a66268048c9/matplotlib/matplotlib/issues/6825 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6bb5a0878402e8c644f37a7a7608b66c61faaddb76532b54c971a66268048c9/matplotlib/matplotlib/issues/6825 |
| og:image:alt | mpl2.0b3 In [4]: plt.imshow(np.random.randint(-128, 128, dtype=np.int8, size=(3, 3))) Out[4]: |
| 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