xoa.plot.add_shadow

Contents

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_width option.

  • xoffset (None, float) – Shadow offset along X in points, which defaults to the plot.shadow_xoffset option.

  • yoffset (None, float) – Shadow offset along Y in points, which defaults to the plot.shadow_yoffset option.

  • alpha (None, float) – Opacity of the shadow, which defaults to the plot.shadow_alpha option.

  • color (None) – Color of the shadow, which defaults to the plot.shadow_color option.

  • zorder (optional) – zorder (else guess from objs).

  • ax (optional, matplotlib.axes.Axes)

  • http (Inspired from)