Title: "round_numbers" axis limits + axis("equal") sometimes sends artists out of axes limits. · Issue #14898 · matplotlib/matplotlib · GitHub
Open Graph Title: "round_numbers" axis limits + axis("equal") sometimes sends artists out of axes limits. · Issue #14898 · matplotlib/matplotlib
X Title: "round_numbers" axis limits + axis("equal") sometimes sends artists out of axes limits. · Issue #14898 · matplotlib/matplotlib
Description: Bug report Bug summary The following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified: from pylab import * from matplotlib import style; style.use("classic") # The sli...
Open Graph Description: Bug report Bug summary The following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified: from pylab import * from matplotlib impo...
X Description: Bug report Bug summary The following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified: from pylab import * from matplotlib impo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"round_numbers\" axis limits + axis(\"equal\") sometimes sends artists out of axes limits.","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nThe following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified:\r\n```python\r\nfrom pylab import *\r\nfrom matplotlib import style; style.use(\"classic\")\r\n\r\n# The slices will be ordered and plotted counter-clockwise.\r\nlabels = 'Frogs', 'Hogs', 'Dogs', 'Logs'\r\nsizes = [15, 30, 45, 10]\r\ncolors = ['yellowgreen', 'gold', 'lightskyblue', 'lightcoral']\r\n# only \"explode\" the 2nd slice (i.e. 'Hogs')\r\nexplode = (0, 0.1, 0, 0)\r\n\r\nplt.pie(sizes, explode=explode, labels=labels, colors=colors,\r\n autopct='%1.1f%%', shadow=True, startangle=90,\r\n wedgeprops={'linewidth': 0},\r\n frame=True, center=(2, 2))\r\n\r\nplt.pie(sizes[::-1], explode=explode, labels=labels, colors=colors,\r\n autopct='%1.1f%%', shadow=True, startangle=90,\r\n wedgeprops={'linewidth': 0},\r\n frame=True, center=(5, 2))\r\n\r\nplt.pie(sizes, explode=explode[::-1], labels=labels, colors=colors,\r\n autopct='%1.1f%%', shadow=True, startangle=90,\r\n wedgeprops={'linewidth': 0},\r\n # The original test has center=(3, 5)\r\n frame=True, center=(3, 4.9))\r\n# Set aspect ratio to be equal so that pie is drawn as a circle.\r\nplt.axis('equal')\r\n\r\nplt.show()\r\n```\r\n\r\nThis yields\r\n\r\nwhich is clearly less than great...\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: linux\r\n * Matplotlib version: master, but present at least since 2.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): any\r\n * Python version: 37\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2019-07-27T11:50:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/14898/matplotlib/issues/14898"}
| 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:a19e6f5b-1f18-fe1d-9ed1-e58c403d0337 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF9A:223B79:F392C2:145CB1E:6A5291D3 |
| html-safe-nonce | 36e2a41c4a0e99b1f76e792a2a7f8c7d2da8819da1fa5c95d807d2b9525ff319 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjlBOjIyM0I3OTpGMzkyQzI6MTQ1Q0IxRTo2QTUyOTFEMyIsInZpc2l0b3JfaWQiOiI0OTgxMDc1MzA5NTY4ODg5Mjk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | adfc506fdab8a3e21cd23c02b1e91a6d75d9226e7f8f29431c36cb11e7041e38 |
| hovercard-subject-tag | issue:473630802 |
| 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/14898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67d1c30cf10a4ba234a746e9fa5575be1bacd6c2409442dc4db8aec735c035c1/matplotlib/matplotlib/issues/14898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67d1c30cf10a4ba234a746e9fa5575be1bacd6c2409442dc4db8aec735c035c1/matplotlib/matplotlib/issues/14898 |
| og:image:alt | Bug report Bug summary The following is slightly modified from test_axes.py::test_pie_frame_grid, with only the center of the topmost pie slightly modified: from pylab import * from matplotlib impo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width