Title: Saving plot as PNG file prunes tick labels · Issue #12564 · matplotlib/matplotlib · GitHub
Open Graph Title: Saving plot as PNG file prunes tick labels · Issue #12564 · matplotlib/matplotlib
X Title: Saving plot as PNG file prunes tick labels · Issue #12564 · matplotlib/matplotlib
Description: Bug report Bug summary When I export a plot to PNG, some tick labels are pruned. This does not happen if I use another format, such as PDF or SVG. Code for reproduction I failed to recreate the problem with a dummy dataset. It seems that...
Open Graph Description: Bug report Bug summary When I export a plot to PNG, some tick labels are pruned. This does not happen if I use another format, such as PDF or SVG. Code for reproduction I failed to recreate the pro...
X Description: Bug report Bug summary When I export a plot to PNG, some tick labels are pruned. This does not happen if I use another format, such as PDF or SVG. Code for reproduction I failed to recreate the pro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12564
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Saving plot as PNG file prunes tick labels ","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\nWhen I export a plot to PNG, some tick labels are pruned. This does not happen if I use another format, such as PDF or SVG.\r\n**Code for reproduction**\r\nI failed to recreate the problem with a dummy dataset. It seems that the problem is very much an edge case probably. This is what I see on my Jupyter notebook:\r\n\r\n\r\nThe plot is exported nicely in PDF: [test.pdf](https://github.com/matplotlib/matplotlib/files/2495405/test.pdf)\r\n\r\nBut, if I use PNG, the bottom and upper y-tick labels are pruned:\r\n\r\n\r\nI tried to play around with the padding in `plt.tight_layout()` and the options in `plt.savefig()` without success.\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: Windows 10 Pro N\r\n * Matplotlib version: 3.0.0 (from Conda)\r\n * Matplotlib backend: module://ipykernel.pylab.backend_inline\r\n * Python version: 3.6.6 (from Conda)\r\n * Jupyter version (if applicable): 1.0.0\r\n","author":{"url":"https://github.com/JackCaster","@type":"Person","name":"JackCaster"},"datePublished":"2018-10-19T10:27:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/12564/matplotlib/issues/12564"}
| 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:8a1b19b2-75d3-9ad7-65c9-28e3a0e6838e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCC2:2D16FA:9C14A8:E17D81:6A55F437 |
| html-safe-nonce | 90502aeb17f7eaf340faf241ea0ec7fdccf05e799ad0d6e4819c2e5bf7f6abcf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0MyOjJEMTZGQTo5QzE0QTg6RTE3RDgxOjZBNTVGNDM3IiwidmlzaXRvcl9pZCI6Ijg0MjM4MTQ1NDAxOTkwNjQ2MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 86962552212a144150d33a3018fdd250e1a9b26a8119b49c65137446a8465f5b |
| hovercard-subject-tag | issue:371898616 |
| 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/12564/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0c2d5788cb2b3a14fa7519d2cd84651c24dc6d7ee712b9703e991dfb3c50467/matplotlib/matplotlib/issues/12564 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0c2d5788cb2b3a14fa7519d2cd84651c24dc6d7ee712b9703e991dfb3c50467/matplotlib/matplotlib/issues/12564 |
| og:image:alt | Bug report Bug summary When I export a plot to PNG, some tick labels are pruned. This does not happen if I use another format, such as PDF or SVG. Code for reproduction I failed to recreate the pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JackCaster |
| 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