CADETProcess.plotting.add_text

Contents

CADETProcess.plotting.add_text#

CADETProcess.plotting.add_text(ax: Axes, text: str, position: tuple[float, float] = (0.05, 0.9), *, tb_props: dict | None = None, **kwargs: Any) None[source]#

Add text to a matplotlib Axes object.

Parameters:
axplt.Axes

The matplotlib Axes object to add text to.

textstr

The text to be added.

positiontuple[float, float], default=(0.05, 0.9)

The position of the text in axes coordinates.

tb_propsdict | None, default=None

Dictionary of properties to update the textbox (e.g., boxstyle, facecolor).

**kwargs

Additional keyword arguments for ax.text.