Python 2.7 Matplotlib:多个垂直对齐的锚定文本

Python 2.7 Matplotlib:多个垂直对齐的锚定文本,python-2.7,matplotlib,Python 2.7,Matplotlib,我正在为matplotlib动态打印使用锚定文本: from mpl_toolkits.axes_grid.anchored_artists import AnchoredText ... at = AnchoredText('flag: ' + var, prop=dict(size=8), frameon=True, loc=1, ) at.patch.set_boxstyle('round,pad=0.

我正在为matplotlib动态打印使用锚定文本:

from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
...
at = AnchoredText('flag: ' + var,
                      prop=dict(size=8), frameon=True,
                      loc=1,
)
at.patch.set_boxstyle('round,pad=0.,rounding_size=0.2')
ax.add_artist(at)
如何添加多个垂直对齐的锚定文本

像这样的事情:

最终: