Pie Chart
News Consumption Sources
Light theme pie showing where people get their news
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#ffffff')
ax.set_facecolor('#ffffff')
sources = ['Social Media', 'News Apps', 'TV', 'Websites', 'Newspapers', 'Radio']
consumption = [32, 25, 18, 12, 8, 5]
colors = ['#4f46e5', '#6366f1', '#818cf8', '#a5b4fc', '#c7d2fe', '#e0e7ff']
wedges, texts, autotexts = ax.pie(consumption, labels=sources, autopct='%1.0f%%',
colors=colors, 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('white')
autotext.set_fontweight('bold')
ax.set_title('News Consumption Sources', fontsize=16, fontweight='bold', color='#1f2937', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕