Created
June 2, 2022 18:10
-
-
Save kusal1990/673dfc3cd49f4f180d0e1f56d64734d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.w3resource.com/graphics/matplotlib/piechart/matplotlib-piechart-exercise-2.php | |
data = df_metadata_train['phase'].value_counts() | |
labels = ['Phase 0', 'Phase 1', 'Phase 3'] | |
#colors = ["#1f77b4", "#ff7f0e", "#2ca02c"] | |
title = 'Count of signals distributed by phase' | |
plt.pie(data, labels=labels, shadow=True, startangle=90,autopct='%.1f%%') | |
plt.title(title, bbox={'facecolor':'0.8', 'pad':5}) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok