Title: Small figsize yield wrong dimensions · Issue #2716 · matplotlib/matplotlib · GitHub
Open Graph Title: Small figsize yield wrong dimensions · Issue #2716 · matplotlib/matplotlib
X Title: Small figsize yield wrong dimensions · Issue #2716 · matplotlib/matplotlib
Description: I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue: import matplotlib.pyplot as plt fig = plt.figure(figsize=(0.5,0.5)) plt.savefig('small.png',dpi = 100) whi...
Open Graph Description: I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue: import matplotlib.pyplot as plt fig = plt.figure(figsize=(0.5,0.5)...
X Description: I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue: import matplotlib.pyplot as plt fig = plt.figure(figsize=(0.5,0.5)...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2716
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Small figsize yield wrong dimensions","articleBody":"I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue:\n\n```\nimport matplotlib.pyplot as plt\nfig = plt.figure(figsize=(0.5,0.5))\nplt.savefig('small.png',dpi = 100)\n```\n\nwhich yields a file `small.png` with dimensions 291 x 50 (wxh) so the height is being properly handled, but the width is not. This seems to be a bug. I seem to recall having similar issues with large figures, I can post another mwe for large figsize too.\n","author":{"url":"https://github.com/ibell","@type":"Person","name":"ibell"},"datePublished":"2014-01-10T17:43:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/2716/matplotlib/issues/2716"}
| 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:b95788fe-3e8c-398b-bc0a-dac5fcef0be4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD46:2D331C:18BB90E:219BB41:6A547341 |
| html-safe-nonce | 1cf7fd4f3931c0aafc5436b647ddd9b45bbe71daa70b254846d73013ba45a8b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDQ2OjJEMzMxQzoxOEJCOTBFOjIxOUJCNDE6NkE1NDczNDEiLCJ2aXNpdG9yX2lkIjoiMjc0NTAzNzUxMDQ2NDAwOTAyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa5ddbcee8c78acdb02d1be29d1d39304b481d16aff609c7dba25c68cc0db739 |
| hovercard-subject-tag | issue:25410327 |
| 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/2716/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9874ad1d4518a396c5aeb68e5584efcd39504de9fd8252bb743690bb99dedd68/matplotlib/matplotlib/issues/2716 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9874ad1d4518a396c5aeb68e5584efcd39504de9fd8252bb743690bb99dedd68/matplotlib/matplotlib/issues/2716 |
| og:image:alt | I am having issues with small figures that I am trying to generate. Here is a minimal working example that demonstrates the issue: import matplotlib.pyplot as plt fig = plt.figure(figsize=(0.5,0.5)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ibell |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width