Pie Chart
Fitness Goals Distribution
Light theme exploded pie showing workout goals
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
goals = ['Weight Loss', 'Muscle Gain', 'Endurance', 'Flexibility', 'General Health']
people = [35, 28, 18, 10, 9]
colors = ['#f43f5e', '#fb7185', '#fda4af', '#fecdd3', '#ffe4e6']
explode = (0.05, 0.03, 0, 0, 0)
wedges, texts, autotexts = ax.pie(people, labels=goals, autopct='%1.0f%%',
colors=colors, explode=explode, startangle=90,
wedgeprops={'edgecolor': 'white', 'linewidth': 2})
for text in texts:
text.set_color('#1f2937')
text.set_fontsize(10)
for autotext in autotexts:
autotext.set_color('#881337')
autotext.set_fontweight('bold')
ax.set_title('Fitness Goals Distribution', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕