Pie Chart
Gaming Platform Distribution
Light theme donut showing gaming platform preferences
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
platforms = ['PC', 'PlayStation', 'Xbox', 'Nintendo', 'Mobile']
gamers = [32, 25, 18, 15, 10]
colors = ['#1e40af', '#1d4ed8', '#2563eb', '#3b82f6', '#60a5fa']
wedges, texts, autotexts = ax.pie(gamers, labels=platforms, autopct='%1.0f%%',
colors=colors, startangle=90,
wedgeprops={'width': 0.55, 'edgecolor': 'white', 'linewidth': 3})
for text in texts:
text.set_color('#1f2937')
text.set_fontsize(11)
for autotext in autotexts:
autotext.set_color('white')
autotext.set_fontweight('bold')
ax.set_title('Gaming Platform Distribution', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕