Title: `imshow` in `v3.1.1`: y-axis chopped-off · Issue #15255 · matplotlib/matplotlib · GitHub
Open Graph Title: `imshow` in `v3.1.1`: y-axis chopped-off · Issue #15255 · matplotlib/matplotlib
X Title: `imshow` in `v3.1.1`: y-axis chopped-off · Issue #15255 · matplotlib/matplotlib
Description: Bug report Bug summary imshow behaviour change between matplotlib 3.1.0 and 3.1.1; y-axis is chopped-off in 3.1.1. Code for reproduction Run this in matplotlib 3.1.0 and 3.1.1. import numpy as np import matplotlib.pyplot as plt xy = ["1"...
Open Graph Description: Bug report Bug summary imshow behaviour change between matplotlib 3.1.0 and 3.1.1; y-axis is chopped-off in 3.1.1. Code for reproduction Run this in matplotlib 3.1.0 and 3.1.1. import numpy as np i...
X Description: Bug report Bug summary imshow behaviour change between matplotlib 3.1.0 and 3.1.1; y-axis is chopped-off in 3.1.1. Code for reproduction Run this in matplotlib 3.1.0 and 3.1.1. import numpy as np i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/15255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`imshow` in `v3.1.1`: y-axis chopped-off ","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\n`imshow` behaviour change between matplotlib 3.1.0 and 3.1.1; y-axis is chopped-off in 3.1.1.\r\n\r\n**Code for reproduction**\r\n\r\nRun this in matplotlib 3.1.0 and 3.1.1.\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nxy = [\"1\", \"2\"]\r\nfig, ax = plt.subplots()\r\nim = ax.imshow(np.array([[0.8, 0.0], [0.1, 6.3]]))\r\nax.set_xticks(np.arange(len(xy)))\r\nax.set_yticks(np.arange(len(xy)))\r\nax.set_xticklabels(xy)\r\nax.set_yticklabels(xy)\r\nplt.show()\r\n```\r\n\r\nThis is a simplified version from the first figure on\r\n\r\n- https://matplotlib.org/3.1.0/gallery/images_contours_and_fields/image_annotated_heatmap.html\r\n- https://matplotlib.org/3.1.1/gallery/images_contours_and_fields/image_annotated_heatmap.html\r\n\r\nwhere the difference can also be observed.\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Linux\r\n * Matplotlib version: v3.1.0 vs v3.1.1\r\n * Matplotlib backend: Qt5Agg\r\n * Python version: 3.7","author":{"url":"https://github.com/prisae","@type":"Person","name":"prisae"},"datePublished":"2019-09-12T13:13:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/15255/matplotlib/issues/15255"}
| 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:c9a08481-afbb-5761-5427-6111c7c247b3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC10:31F1D8:1A62AA5:26AF666:6A54E004 |
| html-safe-nonce | 840f963c999797fe60718d7d8e834609fdb7faa80699fd1340bc8d512daaa16f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzEwOjMxRjFEODoxQTYyQUE1OjI2QUY2NjY6NkE1NEUwMDQiLCJ2aXNpdG9yX2lkIjoiOTA1MTkwNzMwMTk4MDgyMzU1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2995ff4510d7018d14ec76e58991906f5c0130360766309aaae5bd1d1ab9a745 |
| hovercard-subject-tag | issue:492797838 |
| 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/15255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b6163247aa26a8c517b31efdbfa01b7bdaa9c4ceae04845454d51d5160f98b8/matplotlib/matplotlib/issues/15255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b6163247aa26a8c517b31efdbfa01b7bdaa9c4ceae04845454d51d5160f98b8/matplotlib/matplotlib/issues/15255 |
| og:image:alt | Bug report Bug summary imshow behaviour change between matplotlib 3.1.0 and 3.1.1; y-axis is chopped-off in 3.1.1. Code for reproduction Run this in matplotlib 3.1.0 and 3.1.1. import numpy as np i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prisae |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| 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 | 00f21e38abd06cd6752db5c227083570f72fdb6c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width