#!usr/bin/env python
# _*_ coding:utf-8 _*_
"""
@author: Caramel
@file: 3.1.py
@time: 2020/03/05
@desc:球员能力图
"""
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=12
)
ability_size = 6
ability_labels = [u'进攻', u'防守', u'盘带', u'速度', u'体力', u'射速']
#定义为Unicode字符
ax1 = plt.subplot(221, projection='polar')
ax2 = plt.subplot(222, projection='polar')
ax3 = plt.subplot(223, projection='polar')
ax4 = plt.subplot(224, projection='polar')
player = {
'M': np.random.randint(size=ability_size, low=60, high=99),
'H': np.random.randint(size=ability_size, low=60, high=
Matplotlib可视化(二十七)-- 球员能力图
最新推荐文章于 2021-05-27 16:56:19 发布