plotnine.watermark.watermark

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

Add watermark to plot

Parameters:
filename : str

Image file

xo : int, optional

x position offset in pixels. Default is 0.

yo : int, optional

y position offset in pixels. Default is 0.

alpha : float, optional

Alpha blending value.

kwargs : dict

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

Notes

You can add more than one watermark to a plot.

draw(figure)[source]

Draw watermark

Parameters:
figure : Matplotlib.figure.Figure

Matplolib figure on which to draw