Title: [Bug]: Limit autoscaling doesn't take into account `pie()` labels · Issue #22057 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Limit autoscaling doesn't take into account `pie()` labels · Issue #22057 · matplotlib/matplotlib
X Title: [Bug]: Limit autoscaling doesn't take into account `pie()` labels · Issue #22057 · matplotlib/matplotlib
Description: Bug summary Autoscaled axis limits don't take into account text labels added by Axes.pie(). Code for reproduction import matplotlib.pyplot as plt labels = 'Frogs', 'Hogs', 'Dogs', 'Logs' sizes = [15, 30, 45, 10] plt.pie(sizes, labels=lab...
Open Graph Description: Bug summary Autoscaled axis limits don't take into account text labels added by Axes.pie(). Code for reproduction import matplotlib.pyplot as plt labels = 'Frogs', 'Hogs', 'Dogs', 'Logs' sizes = [1...
X Description: Bug summary Autoscaled axis limits don't take into account text labels added by Axes.pie(). Code for reproduction import matplotlib.pyplot as plt labels = 'Frogs', 'Hogs', '...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22057
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Limit autoscaling doesn't take into account `pie()` labels","articleBody":"### Bug summary\n\nAutoscaled axis limits don't take into account text labels added by `Axes.pie()`.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\nlabels = 'Frogs', 'Hogs', 'Dogs', 'Logs'\r\nsizes = [15, 30, 45, 10]\r\n\r\nplt.pie(sizes, labels=labels, labeldistance=1.5, frame=True)\r\nplt.show()\n```\n\n\n### Actual outcome\n\n\r\n\n\n### Expected outcome\n\nText labels are taken into account when autoscaling the Axes, and limits are expanded to include the labels.\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.6.0.dev1129+ga35921c407\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/dstansby","@type":"Person","name":"dstansby"},"datePublished":"2021-12-28T16:07:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/22057/matplotlib/issues/22057"}
| 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:f8331f4e-6bbe-70ef-e496-e6d48fe1e1a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C006:EC65E:428832:59D22C:6A514300 |
| html-safe-nonce | 4e0fb27e9ab1c730def78649aab35f42039f379a2894aa5f099ead8908bc54d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDA2OkVDNjVFOjQyODgzMjo1OUQyMkM6NkE1MTQzMDAiLCJ2aXNpdG9yX2lkIjoiNjA1MDgyMTUwODMxMzQ2NTYwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 87b33944df26072e8e7925881656d4b16af49acd40844d20f6c6487c0bb96341 |
| hovercard-subject-tag | issue:1089992707 |
| 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/22057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/98edcb2c30ee4462b7599bb49fd2c26c9bd51e60883ab40e87eb549acd558648/matplotlib/matplotlib/issues/22057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/98edcb2c30ee4462b7599bb49fd2c26c9bd51e60883ab40e87eb549acd558648/matplotlib/matplotlib/issues/22057 |
| og:image:alt | Bug summary Autoscaled axis limits don't take into account text labels added by Axes.pie(). Code for reproduction import matplotlib.pyplot as plt labels = 'Frogs', 'Hogs', 'Dogs', 'Logs' sizes = [1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dstansby |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| 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 | b78565f6aa43cc5323c9935ec11b22cca7bb0a62 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width