Title: _update_patch_limits should not use CLOSEPOLY vertices for updating · Issue #19078 · matplotlib/matplotlib · GitHub
Open Graph Title: _update_patch_limits should not use CLOSEPOLY vertices for updating · Issue #19078 · matplotlib/matplotlib
X Title: _update_patch_limits should not use CLOSEPOLY vertices for updating · Issue #19078 · matplotlib/matplotlib
Description: Bug report Bug summary When patch.get_path() contains a CLOSEPOLY vertex, the coordinates of that point are not part of that path. But _update_patch_limits still uses these points in updating the data limits. patches.Wedge creates such p...
Open Graph Description: Bug report Bug summary When patch.get_path() contains a CLOSEPOLY vertex, the coordinates of that point are not part of that path. But _update_patch_limits still uses these points in updating the d...
X Description: Bug report Bug summary When patch.get_path() contains a CLOSEPOLY vertex, the coordinates of that point are not part of that path. But _update_patch_limits still uses these points in updating the d...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19078
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_update_patch_limits should not use CLOSEPOLY vertices for updating ","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\nWhen patch.get_path() contains a CLOSEPOLY vertex, the coordinates of that point are not part of that path. But _update_patch_limits still uses these points in updating the data limits. patches.Wedge creates such points that are outside the region of the patch.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nfrom matplotlib import patches\r\nfrom matplotlib import pyplot\r\n\r\nf = pyplot.figure()\r\na = f.add_subplot()\r\na.add_patch(patches.Wedge((0,-1.0),1.05,60,120,0.1))\r\na.relim()\r\na.autoscale_view(True)\r\nf.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n```\r\n# If applicable, paste the console output here\r\n#\r\n#\r\n```\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\nThe lower limit of the y axis should not be so far from the actual painted region.\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\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: Arch Linux\r\n * Matplotlib version: 3.3.3\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.9.0\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\nInstalled via pacman\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/jsberg-bnl","@type":"Person","name":"jsberg-bnl"},"datePublished":"2020-12-07T20:55:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19078/matplotlib/issues/19078"}
| 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:155b19db-09fb-0aa0-4c75-eca47f369c2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6DA:2D3512:16A2F60:1E02957:6A52BC69 |
| html-safe-nonce | 40932d7ae7bef4bbce633b90e513ef39d300b8fb343218dcd486eb97e7a42e33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkRBOjJEMzUxMjoxNkEyRjYwOjFFMDI5NTc6NkE1MkJDNjkiLCJ2aXNpdG9yX2lkIjoiMTMwMjAxNTUwMjE2MDQxMTc1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4861200b821e93390f4cf93df32b0df905cccd78858c1dd0f80c0300cf884496 |
| hovercard-subject-tag | issue:758841171 |
| 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/19078/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5d0e0d2bc9e8fae1d35e687b34a8de0f5ef7365984b548dc401059eaa916d82/matplotlib/matplotlib/issues/19078 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5d0e0d2bc9e8fae1d35e687b34a8de0f5ef7365984b548dc401059eaa916d82/matplotlib/matplotlib/issues/19078 |
| og:image:alt | Bug report Bug summary When patch.get_path() contains a CLOSEPOLY vertex, the coordinates of that point are not part of that path. But _update_patch_limits still uses these points in updating the d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jsberg-bnl |
| 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