plotnine.watermark

watermark(filename, xo=0, yo=0, alpha=None, **kwargs)

Add watermark to plot

Parameters

filename : str | pathlib.Path

Image file

xo : int = 0

x position offset in pixels.

yo : int = 0

y position offset in pixels.

alpha : Optional[float] = None

Alpha blending value.

kwargs : Any = {}

Additional parameters passed to figimage

Notes

You can add more than one watermark to a plot.

Methods

Name Description
draw Draw watermark

draw

draw(figure)

Draw watermark

Parameters

figure : matplotlib.figure.Figure

Matplolib figure on which to draw