开发者

Display label on each marker point in 2D plot

开发者 https://www.devze.com 2023-04-11 00:43 出处:网络
I\'m using Matplotlib to create a projection of the ensemble onto PC1 and PC2: plt.figure(figsize=(5,4))

I'm using Matplotlib to create a projection of the ensemble onto PC1 and PC2:

plt.figure(figsize=(5,4))
showProjection(ensemble, pca[:2])
plt.show ()

Can anyone suggest me on how to label each marker point. Each point represent solved X-ray structure of proteins. I want to check which 开发者_开发技巧point represent each protein. Is it possible to plot the string label besides each point?


You can annotate a specific point in the image using plt.text(x,y,str). However, it looks like that will belong inside the showProjection function. Is that something you wrote yourself, or imported from some package?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号