Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
486 B
1
Indexable
Never
import matplotlib.pyplot as plt

# Data
labels = ['Solana', 'Cardano', 'Savings // Driving', 'Hbar', 'LISA']
sizes = [50, 12.5, 18.75, 6.25, 12.5]  # Percentages
colors = ['gold', 'lightcoral', 'lightskyblue', 'lightgreen', 'orange']

# Plot
plt.figure(figsize=(8, 8))
plt.pie(sizes, labels=labels, colors=colors, autopct='%1.1f%%', startangle=140)
plt.title('Distribution of Funds')
plt.axis('equal')  # Equal aspect ratio ensures that pie is drawn as a circle.

# Show plot
plt.show()
Leave a Comment