add_inner_title#

cherab.lhd.tools.visualization.add_inner_title(ax: Axes, title: str, loc: str = 'upper left', size: float = 'medium', borderpad: float = 0.5, **kwargs)Source#

Add inner title to the axes.

The text is padded by borderpad and has white stroke effect.

Parameters:
axAxes

Matplotlib Axes object.

titlestr

Title text.

locstr, optional

Location of the title, by default “upper left”.

sizeint, optional

Font size of the title, by default plt.rcParams["legend.fontsize"].

borderpadfloat, optional

Padding of the title, by default 0.5.

**kwargs

Keyword arguments for AnchoredText.

Returns:
AnchoredText

AnchoredText object.