【发布时间】:2020-03-21 09:10:15
【问题描述】:
我在我的 PCA 中注释了两个特定点,但文本位于一堆点的中间,难以阅读。我想将它向下移动(并添加我认为我已经成功完成的箭头)。有人可以帮忙吗?
我按照以下方式制作了文本:
for i, txt in enumerate(cluster_center_names):
plt.annotate(txt,(x_cluster_center[i],y_cluster_center[i]), weight="bold", fontsize=10, arrowprops=dict(arrowstyle="->", color='black'))
【问题讨论】:
-
这能回答你的问题吗? xytext details in Matplotlibs Annotate
标签: python data-visualization matplotlib