我已成功使用Unicode箭头来表达我的观点。但是,箭头的尖头部分实际上并未指向我试图绘制的坐标I,尾端(箭头的平坦部分)指向所需的坐标。如何定位这些箭头,使尖头位于该点上。
我是python的新手,所以更多的" dumbed down"你的答案越多越好。
非常感谢你。
#import stuff
import matplotlib.pyplot as plt
import numpy as np
import pylab
#set my arrow equal to unicode code for the arrow I wanted
arrow = u'$\u2193$'
#plotted my figures (I haven't shown the part of the code where I read in all that stuff)
f1 = plt.figure('Figure 1')
plt.scatter(days,fluxdensity,label='4.5 GHz', marker=arrow,s=400,alpha=.5)
plt.scatter(days2, fluxdensity2, color='red',label='7.4 GHz', marker=arrow,s=1000)
plt.scatter(days3, fluxdensity3, color='magenta', label='20 GHz', marker=arrow,s=800)
plt.scatter(days4, fluxdensity4, color='green', label= '24 GHz', marker=arrow,s=400,alpha=.5)
pylab.legend(loc='upper left')
plt.grid()
plt.yscale('log')
plt.xscale('log')
plt.xlabel('Days Since Explosion', fontsize=18)
plt.ylabel('Flux Density muJy', fontsize=16)
plt.savefig('2014dtflux.pdf',format='pdf')
plt.show()