Pie Chart
Smart Home Devices
Dark theme exploded pie showing smart home device adoption
Output
Python
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(figsize=(10, 6), facecolor='#0a0a0f')
ax.set_facecolor('#0a0a0f')
devices = ['Smart Speakers', 'Smart TV', 'Smart Lights', 'Thermostats', 'Security Cams', 'Others']
adoption = [28, 25, 18, 12, 10, 7]
colors = ['#a855f7', '#c084fc', '#d8b4fe', '#e9d5ff', '#f3e8ff', '#faf5ff']
explode = (0.05, 0.03, 0, 0, 0, 0)
wedges, texts, autotexts = ax.pie(adoption, labels=devices, autopct='%1.0f%%',
colors=colors, explode=explode, startangle=45,
wedgeprops={'edgecolor': '#0a0a0f', 'linewidth': 2})
for text in texts:
text.set_color('white')
text.set_fontsize(10)
for autotext in autotexts:
autotext.set_color('#0a0a0f')
autotext.set_fontweight('bold')
ax.set_title('Smart Home Device Adoption', fontsize=16, fontweight='bold', color='white', pad=20)
plt.tight_layout()
Library
Matplotlib
Category
Basic Charts
More Pie Chart examples
☕