Polar Chart

Athlete Performance Spider

Sports metrics comparison with neon glow on dark background

Output
Athlete Performance Spider
Python
import matplotlib.pyplot as plt
import numpy as np

metrics = ['Speed', 'Strength', 'Agility', 'Endurance', 'Technique', 'Mental']
athlete = [88, 75, 92, 80, 85, 78]

athlete += athlete[:1]
angles = np.linspace(0, 2 * np.pi, len(metrics), endpoint=False).tolist()
angles += angles[:1]

fig, ax = plt.subplots(figsize=(10, 10), subplot_kw=dict(polar=True), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')

for lw, alpha in [(12, 0.1), (8, 0.15), (5, 0.25), (2.5, 0.5)]:
    ax.plot(angles, athlete, color='#F5B027', linewidth=lw, alpha=alpha)
ax.plot(angles, athlete, color='#F5B027', linewidth=2)
ax.fill(angles, athlete, color='#F5B027', alpha=0.25)

ax.set_xticks(angles[:-1])
ax.set_xticklabels(metrics, fontsize=11, color='white', fontweight='500')
ax.set_ylim(0, 100)
ax.set_yticks([25, 50, 75, 100])
ax.set_yticklabels(['25', '50', '75', '100'], fontsize=9, color='#666666')
ax.spines['polar'].set_color('#555555')
ax.grid(color='#555555', linewidth=0.8, alpha=0.7)
ax.set_title('Athlete Performance Spider', fontsize=16, color='white', fontweight='bold', pad=20, y=1.08)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Part-to-Whole

Did this help you?

Support PyLucid to keep it free & growing

Support