Title: [feature request] circle -> SVG
Open Graph Title: [feature request] circle -> SVG
X Title: [feature request] circle -> SVG
Description: When saving a scene as SVG, circles are translated to
Open Graph Description: When saving a scene as SVG, circles are translated to
X Description: When saving a scene as SVG, circles are translated to <path> elements. For example import matplotlib.pyplot as plt circ = plt.Circle((0.0, 0.0), 1.0, alpha=0.5) plt.gca().add_patch(circ) plt....
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17424
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[feature request] circle -\u003e SVG \u003ccircle\u003e","articleBody":"When saving a scene as SVG, circles are translated to `\u003cpath\u003e` elements. For example\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\ncirc = plt.Circle((0.0, 0.0), 1.0, alpha=0.5)\r\nplt.gca().add_patch(circ)\r\nplt.autoscale()\r\n\r\nplt.gca().set_aspect(\"equal\")\r\nplt.gca().set_axis_off()\r\n# plt.show()\r\nplt.savefig(\"out.svg\")\r\n```\r\n```xml\r\n \u003cg id=\"patch_2\"\u003e\r\n \u003cpath clip-path=\"url(#p50a8cc0149)\" d=\"M 236.16 295.488.\r\nC 268.238967 295.488 299.008381 282.742891 321.691636 260.059636.\r\nC 344.374891 237.376381 357.12 206.606967 357.12 174.528.\r\nC 357.12 142.449033 344.374891 111.679619 321.691636 88.996364.\r\nC 299.008381 66.313109 268.238967 53.568 236.16 53.568.\r\nC 204.081033 53.568 173.311619 66.313109 150.628364 88.996364.\r\nC 127.945109 111.679619 115.2 142.449033 115.2 174.528.\r\nC 115.2 206.606967 127.945109 237.376381 150.628364 260.059636.\r\nC 173.311619 282.742891 204.081033 295.488 236.16 295.488.\r\nz\r\n\" style=\"fill:#1f77b4;opacity:0.5;\"/\u003e\r\n \u003c/g\u003e\r\n```\r\nA better suited approach would be SVG's own [`\u003ccircle\u003e`](https://www.w3schools.com/graphics/svg_circle.asp) element:\r\n```xml\r\n \u003ccircle cx=\"236\" cy=\"174.5\" r=\"121\" fill=\"red\" /\u003e\r\n```","author":{"url":"https://github.com/nschloe","@type":"Person","name":"nschloe"},"datePublished":"2020-05-15T21:23:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/17424/matplotlib/issues/17424"}
| 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:d5750996-4b6c-09f0-1382-d278dd5add4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A502:C92EC:161BC41:1D7B0BB:6A52B647 |
| html-safe-nonce | 0801bbada7edd167f17326d80354aa72c6d714d8736282f7b1feee0a143048e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTAyOkM5MkVDOjE2MUJDNDE6MUQ3QjBCQjo2QTUyQjY0NyIsInZpc2l0b3JfaWQiOiIxMTE1MjgwMDUyMjMxMjU1NjIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1efa92f19820366ed59ee75e5399c3a90c991f213f18736e31c913a61b28484 |
| hovercard-subject-tag | issue:619263484 |
| 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/17424/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83557f7eca1852f395202097e019d0745ff459250a0defe2b70ec2d6734f288f/matplotlib/matplotlib/issues/17424 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83557f7eca1852f395202097e019d0745ff459250a0defe2b70ec2d6734f288f/matplotlib/matplotlib/issues/17424 |
| og:image:alt | When saving a scene as SVG, circles are translated to |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nschloe |
| 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