Article Outline
Python matplotlib example 'pie chart'
python pie chart
Python matplotlib example: pie chart
# The pie() function in the matplotlib provides you to plot a pie chart from the array x
percentage = [60,30,10]
language = ["Python","Java","C++"]
plt.pie(percentage,labels=language)
plt.title("Simple pie chart")
plt.show()
Python links
- Learn Python: https://pythonbasics.org/
- Python Tutorial: https://pythonprogramminglanguage.com