我有以下示例数据集:
import numpy
import matplotlib.pyplot as pyplot
# Angle In Radians
theta = [i/180*np.pi for i in [0,90,180,270]]
# Radius
radius = [1,2,3,4]
fig = pyplot.figure()
ax = fig.add_subplot(111, projection='polar')
ax.scatter(theta,radius, c ='r')
ax.set_title("Graph Title here", va='bottom')
pyplot.show()
这将输出以下图:
现在我的问题是:是否可以在每个点旁边添加一个标签,以告诉我该图的角度和半径?
非常感谢。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句