用Python语言实现(如下图)

img

文章 最后一个例子适用你的需求


import numpy as np
import matplotlib.pyplot as plt

labels = ['语文','数学','英语','计算机','物理']
angles = np.linspace(0,2*np.pi,len(labels),endpoint=False) 

v1 = [88,95,76,98,94]
v2 = [93,75,95,80,69]

angles = np.concatenate((angles,[angles[0]]))
v1 = np.concatenate((v1,[v1[0]])) 
v2 = np.concatenate((v2,[v2[0]])) 
labels = np.concatenate((labels,[labels[0]])) 

fig=plt.figure()
ax = fig.add_subplot(111, polar=True)
ax.plot(angles, v1, 'o-', lw=2)
ax.plot(angles, v2, 'o-', lw=2)

ax.set_thetagrids(angles * 180/np.pi, labels)

plt.legend(["学生1", "学生2"], loc='best')

plt.show()

img