世界杯颁奖现场|姆巴佩 世界杯|贝奥7加鲁特网络世界杯科技互联站|bio7networkgarut.com

为中国乒乓球选绘制雷达图

  • Home
  • 线上互动社区
  • 为中国乒乓球选绘制雷达图
  • 2025-11-13 12:43:54
  • admin

import numpy as np

import matplotlib.patches as patches

import matplotlib.pyplot as plt

ax = plt.axes(polar = True)

theta = np.linspace(0, 2 * np.pi, 4, endpoint = False)

radius = .25 + .75 * np.random.random(size = len(theta))

points = np.vstack((theta, radius)).transpose()

plt.gca().add_patch(patches.Polygon(points, color = 'c'))

angles = [a if a <=360. else a - 360. for a in np.arange(90, 90+360, 360.0/4)]

titles = ['敏捷','速度','耐性','智力']

ax.set_thetagrids(angles, labels=titles, weight="bold", color="black")

plt.rcParams['font.sans-serif'] = ['SimSun']

plt.show()

Previus Post
南加利福尼亚大学特洛伊人 比分、积分榜、日程表和球员

Copyright © 2088 世界杯颁奖现场|姆巴佩 世界杯|贝奥7加鲁特网络世界杯科技互联站|bio7networkgarut.com All Rights Reserved.
友情链接