xoa.plot.add_shadow#
- xoa.plot.add_shadow(objs, width=None, xoffset=None, yoffset=None, alpha=None, color=None, zorder=None, ax=None, add=True)[source]#
Add a drop-shadow to objects
- Parameters:
objs (
matplotlib.artist.Artist) – Plotted objects.width (None, float) – Width of the gaussian filter in points, which defaults to the
plot.shadow_widthoption.xoffset (None, float) – Shadow offset along X in points, which defaults to the
plot.shadow_xoffsetoption.yoffset (None, float) – Shadow offset along Y in points, which defaults to the
plot.shadow_yoffsetoption.alpha (None, float) – Opacity of the shadow, which defaults to the
plot.shadow_alphaoption.color (None) – Color of the shadow, which defaults to the
plot.shadow_coloroption.zorder (optional) – zorder (else guess from
objs).ax (optional,
matplotlib.axes.Axes)http (Inspired from)