Title: [ENH]: Please add `matplotlib.patches.RoundedRectangle` · Issue #27969 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Please add `matplotlib.patches.RoundedRectangle` · Issue #27969 · matplotlib/matplotlib
X Title: [ENH]: Please add `matplotlib.patches.RoundedRectangle` · Issue #27969 · matplotlib/matplotlib
Description: Problem I'm always frustrated when matplotlib.patches.Rectangle does not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values. I would like it if there is a clsas or method like matplotlib....
Open Graph Description: Problem I'm always frustrated when matplotlib.patches.Rectangle does not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values. I would like it if the...
X Description: Problem I'm always frustrated when matplotlib.patches.Rectangle does not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values. I would like it if...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27969
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Please add `matplotlib.patches.RoundedRectangle`","articleBody":"### Problem\n\n* I'm always frustrated when `matplotlib.patches.Rectangle` does not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values.\r\n* I would like it if there is a clsas or method like `matplotlib.patches.RoundedRectangle(xy, width, height, corner_radius, **kwargs)` that can take any radius \u003c= min(width, height) because `matplotlib.patches.FancyBboxPatch` does **not** round the rectangle as much as possible.\r\n* Here is a sample image of what I am asking for \r\n\r\n\n\n### Proposed solution\n\nPlease add/implement `matplotlib.patches.RoundedRectangle(xy, width, height, corner_radius, **kwargs)`","author":{"url":"https://github.com/dipeshSam","@type":"Person","name":"dipeshSam"},"datePublished":"2024-03-23T10:58:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/27969/matplotlib/issues/27969"}
| 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:79c6c915-a7b7-280b-ee47-9077adc3ee4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3C0:34DD25:E86B90:136B64B:6A544000 |
| html-safe-nonce | 87cbc642285a86fd83f23ee4717aee5653d1912dd1f24793d663b5633c7fa89d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0MwOjM0REQyNTpFODZCOTA6MTM2QjY0Qjo2QTU0NDAwMCIsInZpc2l0b3JfaWQiOiIxMjkzMzY0Njk5MjkxOTkyMDY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3fba01ab74e7e9b3dfdb10c5b85bff98c1173b38f78c8d44edbdccfe1a633e78 |
| hovercard-subject-tag | issue:2203823831 |
| 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/27969/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdab3bfcd037ef0a5c5882928ab7e27a2ea6af698182274bc28fa3af83ffc80a/matplotlib/matplotlib/issues/27969 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdab3bfcd037ef0a5c5882928ab7e27a2ea6af698182274bc28fa3af83ffc80a/matplotlib/matplotlib/issues/27969 |
| og:image:alt | Problem I'm always frustrated when matplotlib.patches.Rectangle does not round the corners of the rectangle because it requires padding and other rectangle-irrelevant values. I would like it if the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dipeshSam |
| 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