arviz_plots.backend.text

Contents

arviz_plots.backend.text#

arviz_plots.backend.text(x, y, string, target, *, size=<unset>, alpha=<unset>, color=<unset>, vertical_align=<unset>, horizontal_align=<unset>, **artist_kws)[source]#

Interface to a text annotation inside a plot.

Parameters:
x, yfloat or array_like

Coordinates where the text should be placed.

stringstr

The text content to display.

targetPlotObject

The backend object representing a plot where this visual should be added.

size, alpha, colorany, optional

Properties of the generated visual.

vertical_align, horizontal_alignany, optional

Alignment properties of the text. Interpretation depends on the plotting backend.

**artist_kws

Passed to the backend plotting function of the respective backend.

Returns:
text_visualany

The backend object representing the text annotation.