我正在对象annotate上使用该方法Axes向绘图添加带有文本的箭头.例如:
ax.annotate('hello world,
xy=(1, 1),
xycoords='data',
textcoords='data',
fontsize=12,
backgroundcolor='w',
arrowprops=dict(arrowstyle="->",
connectionstyle="arc3")
Run Code Online (Sandbox Code Playgroud)
这很好,但我想减少注释框内部的填充.从本质上讲,我想让文章围绕文本"挤压".有没有办法通过arrowprops或bbox_propskwargs 这样做?
我正在寻找像borderpad传说中那样的东西,类似于在这个答案中讨论的东西.