plotnine.watermark.watermark

class plotnine.watermark.watermark(filename, xo=0, yo=0, alpha=None, **kwargs)[source]

Add watermark to plot

Parameters
filenamestr

Image file

xoint, optional

x position offset in pixels. Default is 0.

yoint, optional

y position offset in pixels. Default is 0.

alphafloat, optional

Alpha blending value.

kwargsdict

Additional parameters passed to matplotlib.figure.figimage().

Notes

You can add more than one watermark to a plot.

draw(figure)[source]

Draw watermark

Parameters
figureMatplotlib.figure.Figure

Matplolib figure on which to draw