和网上一样的代码但是运行会出错
报错代码是 plt.thetagrids(angles*180/np.pi,radar_labels)
错误类型:ValueError: The number of FixedLocator locations (7), usually from a call to set_ticks, does not match the number of ticklabels (6).
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['font.family']='Simhei'
radar_labels=np.array(['研究型(I)','艺术型(A)','社会型(S)','企业型(E)','常规型(C)','现实型(R)'])
data=np.array([[0.40,0.32,0.35,0.30,0.30,0.88],
[0.85,0.35,0.30,0.40,0.40,0.30],
[0.30,0.25,0.48,0.85,0.45,0.40],
[0.20,0.38,0.87,0.45,0.32,0.28],
[0.43,0.89,0.30,0.28,0.22,0.30],
[0.34,0.31,0.38,0.40,0.92,0.28]])
data_labels=('艺术家','实验员','工程师','推销员','社会工作者','记事员')
angles=