Title: `patheffects.SimpleLineShadow` calling non-existent `get_foreground` method from GraphicsContextBase · Issue #28793 · matplotlib/matplotlib · GitHub
Open Graph Title: `patheffects.SimpleLineShadow` calling non-existent `get_foreground` method from GraphicsContextBase · Issue #28793 · matplotlib/matplotlib
X Title: `patheffects.SimpleLineShadow` calling non-existent `get_foreground` method from GraphicsContextBase · Issue #28793 · matplotlib/matplotlib
Description: Summary Source documentation shares that if shadow_color is None, the rho value would be applied to the original color: https://matplotlib.org/stable/api/patheffects_api.html#matplotlib.patheffects.SimpleLineShadow Expected Behaviour Usi...
Open Graph Description: Summary Source documentation shares that if shadow_color is None, the rho value would be applied to the original color: https://matplotlib.org/stable/api/patheffects_api.html#matplotlib.patheffects...
X Description: Summary Source documentation shares that if shadow_color is None, the rho value would be applied to the original color: https://matplotlib.org/stable/api/patheffects_api.html#matplotlib.patheffects...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28793
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`patheffects.SimpleLineShadow` calling non-existent `get_foreground` method from GraphicsContextBase","articleBody":"## Summary\r\n\r\nSource documentation shares that if `shadow_color` is None, the rho value would be applied to the original color:\r\n\r\nhttps://matplotlib.org/stable/api/patheffects_api.html#matplotlib.patheffects.SimpleLineShadow\r\n\r\n## Expected Behaviour\r\n\r\nUsing `offset=(0, 0), shadow_color=None, rho=0.6`, was looking to explore if a guassian blue would take place to generate a wide, feathered line following the pattern of a gaussian distribution.\r\n\r\n## Resulting Behaviour\r\n\r\nCode fails with:\r\n\r\n```\r\n File \"/project/path/.venv/lib/python3.11/site-packages/matplotlib/patheffects.py\", line 336, in draw_path\r\n r, g, b = (gc0.get_foreground() or (1., 1., 1.))[:3]\r\n ^^^^^^^^^^^^^^^^^^\r\nAttributeError: 'GraphicsContextBase' object has no attribute 'get_foreground'. Did you mean: 'set_foreground'?\r\n```\r\n\r\nRelated line in repo: https://github.com/matplotlib/matplotlib/blob/a254b687df97cda8c6affa37a1dfcf213f8e6c3a/lib/matplotlib/patheffects.py#L336","author":{"url":"https://github.com/wsidl","@type":"Person","name":"wsidl"},"datePublished":"2024-09-08T21:58:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/28793/matplotlib/issues/28793"}
| 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:e8f89651-23f1-b2b5-2f6a-5f93cdc86a5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0E0:2336BC:5D2450:7EA471:6A527EBD |
| html-safe-nonce | 3fcf2c5f2b3c8642ed3e11a592973db2bcea09d38f06473f218b322cce17242e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEUwOjIzMzZCQzo1RDI0NTA6N0VBNDcxOjZBNTI3RUJEIiwidmlzaXRvcl9pZCI6IjY2NzY0NDcyMTUxMTA3NDk4ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 87d8740bd66b7dbb1a0b1a74595d778a6250b1ae6b0b738fe2e3ceb1122841d4 |
| hovercard-subject-tag | issue:2512591761 |
| 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/28793/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb09894f9e348cdfd2377a4c975975aceef7c77243d47de372a3ae1372145a6e/matplotlib/matplotlib/issues/28793 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb09894f9e348cdfd2377a4c975975aceef7c77243d47de372a3ae1372145a6e/matplotlib/matplotlib/issues/28793 |
| og:image:alt | Summary Source documentation shares that if shadow_color is None, the rho value would be applied to the original color: https://matplotlib.org/stable/api/patheffects_api.html#matplotlib.patheffects... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wsidl |
| 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