Pie Chart in Python || Python
In this we are going to see a basic program to generate Pie Chart in Python Programming Language.


import matplotlib.pyplot as plt
import numpy as np

y = np.array([35, 25, 25, 15])
mylabels = ["Timepass", "Work", "Series", "Study"]

plt.pie(y, labels=mylabels)
plt.show()

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post