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:
- ax
Axes Matplotlib Axes object.
- title
str Title text.
- loc
str,optional Location of the title, by default “upper left”.
- size
int,optional Font size of the title, by default
plt.rcParams["legend.fontsize"].- borderpad
float,optional Padding of the title, by default 0.5.
- **kwargs
Keyword arguments for
AnchoredText.
- ax
- Returns:
AnchoredTextAnchoredText object.