Python 使用matplotlib创建雷达图时,是否有方法删除圆';标签';在雷达图上?
我正在使用下面的代码创建雷达图:Python 使用matplotlib创建雷达图时,是否有方法删除圆';标签';在雷达图上?,python,matplotlib,plot,radar-chart,Python,Matplotlib,Plot,Radar Chart,我正在使用下面的代码创建雷达图: stats = dataset[1] labels = dataset[0] angles=np.linspace(0, 2*np.pi, len(labels), endpoint=False) # close the plot stats=np.concatenate((stats,[stats[0]])) angles=np.concatenate((angles,[angles[0]])) fig=plt.figure() ax = fig.add_
stats = dataset[1]
labels = dataset[0]
angles=np.linspace(0, 2*np.pi, len(labels), endpoint=False)
# close the plot
stats=np.concatenate((stats,[stats[0]]))
angles=np.concatenate((angles,[angles[0]]))
fig=plt.figure()
ax = fig.add_subplot(111, polar=True)
ax.scatter(angles, stats)
ax.set_thetagrids(angles * 180/np.pi, labels)
ax.grid(True)
这里,stats是数据,标签是标签。
这给出了这样一个图:
有没有办法摆脱情节中每个圆圈上恼人的“25,50,75,…,175”
谢谢。在打印数据后,您可以使用以下命令隐藏径向记号标签(y记号标签)
ax.set_yticklabels([])