Title: ImageGrid bug when using inline backend · Issue #12370 · matplotlib/matplotlib · GitHub
Open Graph Title: ImageGrid bug when using inline backend · Issue #12370 · matplotlib/matplotlib
X Title: ImageGrid bug when using inline backend · Issue #12370 · matplotlib/matplotlib
Description: Bug report Bug summary The ImageGrid class seems to not behave correctly since the upgrade to matplotlib 3.0.0 when the inline backend is used in a Jupyter notebook: the resulting subplots fail to arrange in a grid and are placed on top ...
Open Graph Description: Bug report Bug summary The ImageGrid class seems to not behave correctly since the upgrade to matplotlib 3.0.0 when the inline backend is used in a Jupyter notebook: the resulting subplots fail to ...
X Description: Bug report Bug summary The ImageGrid class seems to not behave correctly since the upgrade to matplotlib 3.0.0 when the inline backend is used in a Jupyter notebook: the resulting subplots fail to ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12370
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImageGrid bug when using inline backend","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nThe `ImageGrid` class seems to not behave correctly since the upgrade to matplotlib `3.0.0` when the `inline` backend is used in a Jupyter notebook: the resulting subplots fail to arrange in a grid and are placed on top of eachother. The correct behaviour is reproduced if using the `notebook` or `ipympl` backends. Thanks!\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.axes_grid1 import ImageGrid\r\nimport numpy as np\r\n\r\nim = np.arange(100)\r\nim.shape = 10, 10\r\n\r\nfig = plt.figure(1, (4., 4.))\r\ngrid = ImageGrid(fig, 111, \r\n nrows_ncols=(2, 2), \r\n axes_pad=0.1, \r\n )\r\n\r\nfor i in range(4):\r\n grid[i].imshow(im) \r\n grid[i].set_title('test {0}{0}'.format(i)) \r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n**Expected outcome**\r\n\r\n\r\n\r\n\r\n**Matplotlib version**\r\n * Operating system: Debian 9\r\n * Matplotlib version: 3.0.0\r\n * Matplotlib backend: `inline`\r\n * Python version: 3.5.3\r\n * Jupyter version (if applicable): 4.4.0\r\n * Other libraries: \r\n\r\n\r\n","author":{"url":"https://github.com/ezatterin","@type":"Person","name":"ezatterin"},"datePublished":"2018-10-02T14:18:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/12370/matplotlib/issues/12370"}
| 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:288349f6-9b46-7405-6ccc-2a8030ba68eb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEF0:1F372:18BE63F:21F4A1C:6A55E11C |
| html-safe-nonce | 50c2ddb58b1e725ecaa80496b7490c9887522f084978b2f192a0417df5daf00c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUYwOjFGMzcyOjE4QkU2M0Y6MjFGNEExQzo2QTU1RTExQyIsInZpc2l0b3JfaWQiOiIzOTUwMzQ0OTIwMTU4ODIyNjg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0892ce9f32ef30f6c22dd6b7a83b5861af26b72e4f4a0bfeebb52878575d2597 |
| hovercard-subject-tag | issue:365920242 |
| 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/12370/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1322acb8d3f1d23ad6fcd7d2cc5c6a79808d571eb97e42cdb931caecc9224d81/matplotlib/matplotlib/issues/12370 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1322acb8d3f1d23ad6fcd7d2cc5c6a79808d571eb97e42cdb931caecc9224d81/matplotlib/matplotlib/issues/12370 |
| og:image:alt | Bug report Bug summary The ImageGrid class seems to not behave correctly since the upgrade to matplotlib 3.0.0 when the inline backend is used in a Jupyter notebook: the resulting subplots fail to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ezatterin |
| 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