Title: ImageGrid in 3.0 · Issue #12505 · matplotlib/matplotlib · GitHub
Open Graph Title: ImageGrid in 3.0 · Issue #12505 · matplotlib/matplotlib
X Title: ImageGrid in 3.0 · Issue #12505 · matplotlib/matplotlib
Description: Bug report Bug summary ImageGrid seems to be broken on 3.0.0? Code for reproduction f = plt.figure() grid = ImageGrid(f, 111, nrows_ncols=(2, 2), direction='column', label_mode="L", cbar_location="right", cbar_mode="single", cbar_size="5...
Open Graph Description: Bug report Bug summary ImageGrid seems to be broken on 3.0.0? Code for reproduction f = plt.figure() grid = ImageGrid(f, 111, nrows_ncols=(2, 2), direction='column', label_mode="L", cbar_location="...
X Description: Bug report Bug summary ImageGrid seems to be broken on 3.0.0? Code for reproduction f = plt.figure() grid = ImageGrid(f, 111, nrows_ncols=(2, 2), direction='column', label_mode="L"...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12505
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImageGrid in 3.0","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nImageGrid seems to be broken on 3.0.0?\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nf = plt.figure()\r\ngrid = ImageGrid(f, 111, \r\n nrows_ncols=(2, 2),\r\n direction='column',\r\n label_mode=\"L\",\r\n cbar_location=\"right\",\r\n cbar_mode=\"single\",\r\n cbar_size=\"5%\",\r\n cbar_pad=\"3%\"\r\n )\r\naxarr = np.array(grid).reshape(2, 2)\r\nfor ax in axarr.flatten():\r\n m = ax.imshow(np.random.random(15**2).reshape((15, 15))+0.5, \r\n norm=LogNorm(vmax=2, vmin=0.5), cmap='coolwarm')\r\nplt.colorbar(m, cax=grid.cbar_axes[0], format=FormatStrFormatter('%.2f'))\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\nFrom 2.2.2\r\n\r\n\r\nNote: if I remove all colorbar-related code, it again looks weird, but in a different way:\r\n\r\n```python\r\nf = plt.figure()\r\ngrid = ImageGrid(f, 111, \r\n nrows_ncols=(2, 2),\r\n direction='column',\r\n label_mode=\"L\",\r\n )\r\naxarr = np.array(grid).reshape(2, 2)\r\nfor ax in axarr.flatten():\r\n m = ax.imshow(np.random.random(15**2).reshape((15, 15))+0.5, \r\n norm=LogNorm(vmax=2, vmin=0.5), cmap='coolwarm')\r\n```\r\n\r\n\r\nSeems like maybe all axes take up the whole figure, and so cover the rest?.. Just a guess.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Ubuntu 16.04\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): inline\r\n * Python version: 3.5.2\r\n * Jupyter version (if applicable): Jupyter Lab 0.33.6\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/Phlya","@type":"Person","name":"Phlya"},"datePublished":"2018-10-12T14:53:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12505/matplotlib/issues/12505"}
| 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:dd29b8a2-9679-195c-044c-d33880f3a255 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF10:CD74F:19BE35:252B52:6A55E169 |
| html-safe-nonce | c9a49445d413b6c2f95a84880acd370ec1ff828aa4515f878239223bf8d3a5de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjEwOkNENzRGOjE5QkUzNToyNTJCNTI6NkE1NUUxNjkiLCJ2aXNpdG9yX2lkIjoiNzI5MDI0MTQ3MjQxODY2ODkwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e5c1828efbfb8e97203ff6612bf01b413068e35e55a216ee528fe11646f622fb |
| hovercard-subject-tag | issue:369586230 |
| 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/12505/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b7e2c544fdf645b33bc823775f0df1782576edf4d2e81c8f741dc9b9dbd08dd/matplotlib/matplotlib/issues/12505 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b7e2c544fdf645b33bc823775f0df1782576edf4d2e81c8f741dc9b9dbd08dd/matplotlib/matplotlib/issues/12505 |
| og:image:alt | Bug report Bug summary ImageGrid seems to be broken on 3.0.0? Code for reproduction f = plt.figure() grid = ImageGrid(f, 111, nrows_ncols=(2, 2), direction='column', label_mode="L", cbar_location="... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Phlya |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width