atompy.textwithbox#
- atompy.textwithbox(axes, x, y, text, pad=1.0, boxbackground='white', boxedgecolor='black', boxedgewidth=0.5, **text_kwargs)[source]#
Plot text with matplotlib surrounded by a box using LaTeX commands.
- Parameters:
- ax
matplotlib.axes.Axes the axes
- x
float x-position
- y
float y-position
- text
str The text to be surrounded by the box
- pad
float, default:1.0(in pts) padding between boxedge and text
- boxbackground
None,False, orstr, default:"white" background of box
NoneorFalse: No background colorstr: latex xcolor named color
- boxedgecolor
str, optional, default:"black" edge color using named color from latex package xcolor only used if boxbackground != None
- boxedgewidth
float, default0.5(in pts) Linewidth of the box’ edges.
- **text_kwargs
Additional
matpotlib.text.Textkeyword arguments.
- ax
- Returns:
- text
matplotlib.text.Text The text artist.
- text
- Other Parameters:
- properties
Other miscellaneous text parameters