Title: [Bug]: set_edgecolor(None) cannot recover the default style after changing the edge color of wedges with hatches · Issue #31225 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: set_edgecolor(None) cannot recover the default style after changing the edge color of wedges with hatches · Issue #31225 · matplotlib/matplotlib
X Title: [Bug]: set_edgecolor(None) cannot recover the default style after changing the edge color of wedges with hatches · Issue #31225 · matplotlib/matplotlib
Description: Bug summary This bug occurs when I create a pie chart with hatches, then specify the edge color to red, and reset it to None to recover the default style. However, the actual result displays red hatches. Code for reproduction import matp...
Open Graph Description: Bug summary This bug occurs when I create a pie chart with hatches, then specify the edge color to red, and reset it to None to recover the default style. However, the actual result displays red ha...
X Description: Bug summary This bug occurs when I create a pie chart with hatches, then specify the edge color to red, and reset it to None to recover the default style. However, the actual result displays red ha...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31225
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: set_edgecolor(None) cannot recover the default style after changing the edge color of wedges with hatches","articleBody":"### Bug summary\n\nThis bug occurs when I create a pie chart with hatches, then specify the edge color to red, and reset it to `None` to recover the default style. However, the actual result displays red hatches.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nlabels = 'Frogs', 'Hogs', 'Dogs', 'Logs'\nsizes = [15, 30, 45, 10]\n\nfig, ax = plt.subplots()\nwedges, texts = ax.pie(sizes, labels=labels, hatch=['**O', 'oO', 'O.O', '.||.'])\nfor wedge in wedges: wedge.set_edgecolor(None)\nplt.savefig('plot1.png')\nfor wedge in wedges: wedge.set_edgecolor('r')\nfor wedge in wedges: wedge.set_edgecolor(None)\nplt.savefig('plot2.png')\n```\n\n### Actual outcome\n\n#### plot1.png\n\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/08c3f8da-490b-4965-8a2d-6f3f62c8d0bc\" /\u003e\n\n#### plot2.png\n\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ec340857-d0f3-4835-a6b3-09b50fe7bc1d\" /\u003e\n\n### Expected outcome\n\n#### plot1.png\n\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/456803c0-c5b7-408f-99cb-9b78b91b30d7\" /\u003e\n\n#### plot2.png\n\n\u003cimg width=\"640\" height=\"480\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f42c5d8d-23ba-4af8-9dc2-4cfac28aa5fb\" /\u003e\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.8\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\nNone","author":{"url":"https://github.com/williamlus","@type":"Person","name":"williamlus"},"datePublished":"2026-03-02T13:23:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/31225/matplotlib/issues/31225"}
| 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:b3ffde48-58bb-7653-9aaf-da18c55bab7d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE12:15D6AD:5CBD8:79AD4:6A526987 |
| html-safe-nonce | 6796910caed24651016be7ceb02ff4910628c883d5193f31d8853ee27cd88547 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTEyOjE1RDZBRDo1Q0JEODo3OUFENDo2QTUyNjk4NyIsInZpc2l0b3JfaWQiOiI0OTA4ODE0NTY3ODcyODE3NTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52b45dd84dde89840ac28af65fd8d96ee84aef2024f8026ccddd836b1bbfe62f |
| hovercard-subject-tag | issue:4011260508 |
| 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/31225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b68c1e2ba3967b3ad052fd85b9e6117a14443a1a34515160b1a67c61f10c1c9e/matplotlib/matplotlib/issues/31225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b68c1e2ba3967b3ad052fd85b9e6117a14443a1a34515160b1a67c61f10c1c9e/matplotlib/matplotlib/issues/31225 |
| og:image:alt | Bug summary This bug occurs when I create a pie chart with hatches, then specify the edge color to red, and reset it to None to recover the default style. However, the actual result displays red ha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | williamlus |
| 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