import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as mpathes
#构造数据
title = ""
values = [1, 1, 0.927358663, 0.787577119, 0.505513384, 0, 0, 0]
MaxVal = max(values)
feature = ["Tree species composition", "Age structure","Diameter","Height","Degree of slant","Preservation rate","Stem form","Stand density"]
#设置雷达图的角度,用于平分切开一个平面
N = len(values)
angles = np.linspace(0,2*np.pi,N,endpoint=False)
angle = 2*np.pi/N
#极坐标
ax= plt.subplot(111, projection='polar')
# 中文和负号的正常显示
plt.rcParams['font.sans-serif'] = 'Times New Roman'
plt.rcParams['axes.unicode_minus'] = False
#使用ggplot的风格绘图
plt.style.use('ggplot')
<