xoa.plot.add_lightshading#
- xoa.plot.add_lightshading(objs, width=None, fraction=None, zorder=None, ax=None, add=True, **kwargs)[source]#
Add a light shading effect to objects
- Parameters:
objs (
matplotlib.artist.Artist) – Plotted objects.width (None, float) – Width of the gaussian filter in points, which defaults to the
plot.lightshading_widthoption.fraction (None, float) – Contrast of the shading, passed to
matplotlib.colors.LightSource.shade_rgb(). Values lower than one give black objects with recent versions of matplotlib. It defaults to theplot.lightshading_fractionoption.zorder (optional) – zorder (else guess from
objs).ax (optional,
matplotlib.axes.Axes)**kwargs – Extra keywords are passed to
matplotlib.colors.LightSourcehttp (Inspired from)