Title: path.sketch doesn't apply to PolyCollection · Issue #19693 · matplotlib/matplotlib · GitHub
Open Graph Title: path.sketch doesn't apply to PolyCollection · Issue #19693 · matplotlib/matplotlib
X Title: path.sketch doesn't apply to PolyCollection · Issue #19693 · matplotlib/matplotlib
Description: Bug report Bug summary PolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches are-the docs say that polycollection defaults to patch RC params Code for reproduction import numpy as np import matpl...
Open Graph Description: Bug report Bug summary PolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches are-the docs say that polycollection defaults to patch RC params Code for repr...
X Description: Bug report Bug summary PolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches are-the docs say that polycollection defaults to patch RC params Code for ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19693
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"path.sketch doesn't apply to PolyCollection","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\nPolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches \r\nare-the docs say that polycollection defaults to patch RC params\r\n\r\n\r\n\r\n**Code for reproduction**\r\n```python\r\nimport numpy as np\r\n\r\nimport matplotlib.collections as mcollections\r\nimport matplotlib.patches as mpatches\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib import rcParams\r\n\r\n\r\nrcParams['path.sketch'] = (.5, 25, 20)\r\n\r\nfig, (ax1, ax2) = plt.subplots(ncols=2)\r\nf1 = mpatches.Rectangle((.25,.25), .5, .5, facecolor='white', edgecolor='C0', linewidth=2)\r\nax1.add_patch(f1)\r\n\r\nverts = np.array([[[1,-1], [1,1], [2.4, 1.5], [2.4, -.5]],\r\n [[-.4,1.5],[-.4,-.5],[1,-1],[1,1]],\r\n [[-.4, 1.5], [1, 2],[2.4, 1.5], [1,1]]])\r\nverts2 = verts*.25 + [.3]\r\np = mcollections.PolyCollection(np.vstack([verts, verts2]), facecolor='white', edgecolor='C0', linewidth=2)\r\nax2.add_collection(p)\r\n```\r\n\r\n**Matplotlib version**\r\n * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): 3.3.4\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): jupyter inline\r\n ","author":{"url":"https://github.com/story645","@type":"Person","name":"story645"},"datePublished":"2021-03-12T19:35:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/19693/matplotlib/issues/19693"}
| 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:057b8d31-05c4-88af-e599-9782b03429e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA86:25636C:3E742:510B1:6A5268FA |
| html-safe-nonce | cdf7030f3077b63482e9bcd5992ad3963abb15710f914e79c015edad76ab15d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTg2OjI1NjM2QzozRTc0Mjo1MTBCMTo2QTUyNjhGQSIsInZpc2l0b3JfaWQiOiI4MzA5MTI0OTU5MDQ2ODg3Njc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d62ecb8e9d1bf29f4330728709b5ebc75aca04cfbf06fafcdd5fb1870826a7fc |
| hovercard-subject-tag | issue:830391314 |
| 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/19693/issue_layout |
| twitter:image | https://opengraph.githubassets.com/228c078471241b46f4e69bf5d950f790b0bd1154501d2fe8a854d1be88f935b4/matplotlib/matplotlib/issues/19693 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/228c078471241b46f4e69bf5d950f790b0bd1154501d2fe8a854d1be88f935b4/matplotlib/matplotlib/issues/19693 |
| og:image:alt | Bug report Bug summary PolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches are-the docs say that polycollection defaults to patch RC params Code for repr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | story645 |
| 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