Watermarks

A watermark is an image (usually a company logo) used to identify ownership of the copyright of a plot.
The add_watermark() method allows to add a watermark to a plot and customize its size, position and transparency.
Add a watermark.

Parameters
----------
image
    file path or numpy array.
image_size
    Tuple (width, height) in pixels (width or height can be None), or an
    integer representing a percentage of the plot's width used to resize
    the image.
    If the image is a numpy array, it cannot be resized.
xo
    the x image offset in pixels.
yo
    the y image offset in pixels.
alpha
    the alpha blending value.
kwargs
    other parameters to pass to underlying matplotlib function :
    https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.figimage.html
from casys import CasysPlot

plot = CasysPlot(data=ad, data_name="SIG0 pass", stat="mean")
plot.add_watermark(image="../resources/CLS-Logo.png", image_size=30, xo=400, yo=200, alpha=0.4)
plot.show()
../_images/watermark_2_0.png
For usage examples on how to add watermarks, visit this notebook.