Pie Chart

Renewable Energy Sources

Dark theme pie showing renewable energy mix

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

fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')

sources = ['Solar', 'Wind', 'Hydro', 'Biomass', 'Geothermal']
energy = [35, 28, 22, 10, 5]
colors = ['#fbbf24', '#60a5fa', '#22d3ee', '#4ade80', '#f97316']

wedges, texts, autotexts = ax.pie(energy, labels=sources, autopct='%1.1f%%',
                                   colors=colors, startangle=90,
                                   wedgeprops={'edgecolor': '#0a0a0f', 'linewidth': 2})

for text in texts:
    text.set_color('white')
    text.set_fontsize(11)
for autotext in autotexts:
    autotext.set_color('#0a0a0f')
    autotext.set_fontweight('bold')

ax.set_title('Renewable Energy Sources', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library

Matplotlib

Category

Basic Charts

Did this help you?

Support PyLucid to keep it free & growing

Support