我正在使用matplotlib制作一个大学项目的极地散点图,我无法找到如何在径向轴上添加标签.这是我的代码(我遗漏了数据,因为它是从csv中读出来的)
import matplotlib.pyplot as plt
ax = plt.subplot(111, polar=True)
ax.set_rmax(1)
c = plt.scatter(theta, radii)
ax.set_title("Spread of Abell Cluster Supernova Events as a Function of Fractional Radius", va='bottom')
ax.legend(['Supernova'])
plt.show()
Run Code Online (Sandbox Code Playgroud)
(我的情节看起来像这样.我似乎无法找到任何直接的方法来做到这一点.有没有人以前处理过这个并有任何建议?