Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Summary
Source documentation shares that ifshadow_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
Usingoffset=(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.
Resulting Behaviour
Code fails with:
File "/project/path/.venv/lib/python3.11/site-packages/matplotlib/patheffects.py", line 336, in draw_path r, g, b = (gc0.get_foreground() or (1., 1., 1.))[:3] ^^^^^^^^^^^^^^^^^^AttributeError: 'GraphicsContextBase' object has no attribute 'get_foreground'. Did you mean: 'set_foreground'?
Related line in repo:
matplotlib/lib/matplotlib/patheffects.py
Line 336 ina254b68
r,g,b= (gc0.get_foreground()or (1.,1.,1.))[:3] |