Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/291.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用matplotlib创建雷达图时,是否有方法删除圆';标签';在雷达图上?_Python_Matplotlib_Plot_Radar Chart - Fatal编程技术网

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([])