【发布时间】:2018-03-14 20:13:28
【问题描述】:
我创建了一些大型港口的地图。使用 'x' 和 'y' 纬度和经度以及 'text' 端口名称。
x,y = map(lonA, latA)
map.scatter(x, y, s=Size, c=color, marker='o', label = 'Ports',alpha=0.65, zorder=2)
for i in range (0,n):
plt.annotate(text[i],xy=(x[i],y[i]),ha='right')
【问题讨论】:
标签: python label scatter annotate