Pie Chart
Operating System Usage
Light theme modern donut showing OS market share with center icon
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
os_names = ['Windows', 'macOS', 'Linux', 'Chrome OS', 'Other']
usage = [72, 15, 5, 5, 3]
colors = ['#3b82f6', '#6366f1', '#8b5cf6', '#a855f7', '#d946ef']
wedges, texts, autotexts = ax.pie(usage, labels=os_names, autopct='%1.1f%%',
colors=colors, startangle=90,
wedgeprops={'width': 0.55, 'edgecolor': 'white', 'linewidth': 3})
for text in texts:
text.set_color('#1f2937')
text.set_fontsize(10)
for autotext in autotexts:
autotext.set_color('white')
autotext.set_fontweight('bold')
centre_circle = plt.Circle((0, 0), 0.35, fc='#ffffff')
ax.add_patch(centre_circle)
ax.text(0, 0, 'OS\nMarket', ha='center', va='center', fontsize=12,
fontweight='bold', color='#1f2937')
ax.set_title('Operating System Usage', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕