Radar Chart

Renewable Energy Source Comparison

Dark-themed radar chart comparing renewable energy sources across efficiency, cost, reliability, environmental impact, and scalability.

Output
Renewable Energy Source Comparison
Python
import matplotlib.pyplot as plt
import numpy as np

# Energy source metrics
categories = ['Efficiency', 'Cost per kWh', 'Reliability', 'Land Use',
              'Scalability', 'Storage Needs', 'Grid Stability', 'Carbon Footprint']
              
solar = [85, 88, 65, 70, 95, 50, 65, 95]
wind = [80, 92, 70, 85, 90, 55, 70, 98]
hydro = [92, 95, 98, 60, 70, 90, 95, 85]
nuclear = [95, 78, 98, 95, 75, 95, 98, 70]

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

solar += solar[:1]
wind += wind[:1]
hydro += hydro[:1]
nuclear += nuclear[:1]

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

ax.plot(angles, solar, 'o-', linewidth=2.5, color='#F5D327', label='Solar', markersize=7)
ax.fill(angles, solar, alpha=0.15, color='#F5D327')

ax.plot(angles, wind, 's-', linewidth=2.5, color='#27D3F5', label='Wind', markersize=7)
ax.fill(angles, wind, alpha=0.15, color='#27D3F5')

ax.plot(angles, hydro, '^-', linewidth=2.5, color='#276CF5', label='Hydroelectric', markersize=7)
ax.fill(angles, hydro, alpha=0.15, color='#276CF5')

ax.plot(angles, nuclear, 'D-', linewidth=2.5, color='#6CF527', label='Nuclear', markersize=7)
ax.fill(angles, nuclear, alpha=0.15, color='#6CF527')

ax.set_xticks(angles[:-1])
ax.set_xticklabels(categories, fontsize=10, color='#e2e8f0', fontweight='500')
ax.set_ylim(0, 100)

ax.yaxis.grid(True, color='#1e293b', linestyle='-', linewidth=0.8)
ax.xaxis.grid(True, color='#334155', linestyle='-', linewidth=0.5)
ax.spines['polar'].set_color('#334155')
ax.tick_params(axis='y', colors='#94a3b8')

ax.set_title('Clean Energy Source Comparison', fontsize=16, color='#f8fafc',
             fontweight='bold', pad=25)

ax.legend(loc='upper right', bbox_to_anchor=(1.2, 1.1), fontsize=10,
          frameon=True, facecolor='#1e293b', edgecolor='#334155', labelcolor='#e2e8f0')

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Polar Charts

Did this help you?

Support PyLucid to keep it free & growing

Support