我正在创建一个带有matplotlib中带注释的文本注释的箭头,并希望从箭头末端偏移文本。在
import matplotlib.pyplot as plt
ax = plt.subplot()
ax.annotate(
"test",
xy=(0.2, 0.2),
xytext=(0.5, 0.5),
arrowprops=dict(
arrowstyle="simple",
facecolor="black",
)
)
plt.show()
此处创建的文本仅指向箭头的末尾。有没有办法用人工坐标来抵消它?在
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐