Title: make_axes_locatable : Colorbar in the middle instead of bottom while saving a pdf, png. · Issue #12624 · matplotlib/matplotlib · GitHub
Open Graph Title: make_axes_locatable : Colorbar in the middle instead of bottom while saving a pdf, png. · Issue #12624 · matplotlib/matplotlib
X Title: make_axes_locatable : Colorbar in the middle instead of bottom while saving a pdf, png. · Issue #12624 · matplotlib/matplotlib
Description: cax added using make_axes_locatable shows up at the middle of the image, instead of bottom while saving figures. I have tried .png and .pdf . The output from plt.show() is correct. python 3.6.6 :: Anaconda custom (64-bit) numpy version 1...
Open Graph Description: cax added using make_axes_locatable shows up at the middle of the image, instead of bottom while saving figures. I have tried .png and .pdf . The output from plt.show() is correct. python 3.6.6 :: ...
X Description: cax added using make_axes_locatable shows up at the middle of the image, instead of bottom while saving figures. I have tried .png and .pdf . The output from plt.show() is correct. python 3.6.6 :: ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12624
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"make_axes_locatable : Colorbar in the middle instead of bottom while saving a pdf, png.","articleBody":"cax added using make_axes_locatable shows up at the middle of the image, instead of bottom while saving figures. I have tried .png and .pdf . The output from plt.show() is correct.\r\n\r\npython 3.6.6 :: Anaconda custom (64-bit)\r\nnumpy version 1.15.3\r\nmatplotlib version 3.0.0\r\n\r\nHere's a minimal script, which reproduces the result\r\n\r\n```python\r\nimport numpy as np\r\nfrom matplotlib import pyplot as plt \r\nfrom mpl_toolkits.axes_grid1 import make_axes_locatable\r\n\r\nepsilon = np.random.rand(128,128)\r\nfig,ax = plt.subplots(figsize=(6,6))\r\ncax = make_axes_locatable(ax).append_axes('bottom', size='5%', pad = 0.05)\r\nim = ax.imshow(epsilon,origin='lower')\r\nfig.colorbar(im,cax=cax,orientation='horizontal')\r\nfig.tight_layout()\r\nfig.savefig('test.png',dpi=200,bbox_inches='tight')\r\nplt.show()\r\n```","author":{"url":"https://github.com/navdeeprana","@type":"Person","name":"navdeeprana"},"datePublished":"2018-10-25T05:14:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/12624/matplotlib/issues/12624"}
| 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:33dcb3a1-16a1-0cb6-4139-6e0693196754 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD00:8365B:414904:5905E2:6A5598BB |
| html-safe-nonce | 687d350fa1dec2972911dfeb06c438ab48b393be84e438ef4f29b702104cfbbc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDAwOjgzNjVCOjQxNDkwNDo1OTA1RTI6NkE1NTk4QkIiLCJ2aXNpdG9yX2lkIjoiNTA2NDc4MjI2MzY2MzA0MDY5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d8adbf8077e31a2a3196d6a3f4f133d32420542f2047978de3765702a3e6c0e0 |
| hovercard-subject-tag | issue:373776432 |
| 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/12624/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9007ca6fc846a1b6e5e7499fe5fa3cbec192238909a03d86526514f92eec7df9/matplotlib/matplotlib/issues/12624 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9007ca6fc846a1b6e5e7499fe5fa3cbec192238909a03d86526514f92eec7df9/matplotlib/matplotlib/issues/12624 |
| og:image:alt | cax added using make_axes_locatable shows up at the middle of the image, instead of bottom while saving figures. I have tried .png and .pdf . The output from plt.show() is correct. python 3.6.6 :: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | navdeeprana |
| 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 | aa21baa44893467b0b640d0300538f84ca8c475b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width