plotnine.watermark.watermark

class plotnine.watermark.watermark(filename: str | pathlib.Path, xo: int = 0, yo: int = 0, alpha: float | None = None, **kwargs: Any)[source]

Add watermark to plot

Parameters
filenamepython:str | pathlib.Path

Image file

xopython:int, optional

x position offset in pixels. Default is 0.

yopython:int, optional

y position offset in pixels. Default is 0.

alphapython:float, optional

Alpha blending value.

kwargspython:dict

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

Notes

You can add more than one watermark to a plot.

draw(figure: matplotlib.figure.Figure)[source]

Draw watermark

Parameters
figureMatplotlib.figure.Figure

Matplolib figure on which to draw