使用极坐标来显示球员的能力图
#!/usr/bin/python
#coding: utf-8
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
plt.style.use("ggplot")
font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=14)
# 类别数量
ability_size = 6
# 6种类别
ability_label = [u"进攻", u"防守", u"盘带", u"速度", u"体力", u"突破"]
# 球员能力值
player = {
"M" : np.random.randint(size = ability_size, low= 0, high= 99),
"H" : np.random.randint(size = ability_size, low= 0, high= 99),
"P" : np.random.randint(size = ability_size, low= 0, high= 99),
"Q" : np.random.ra