HOME/Articles/

matplotlib example pie chart (snippet)

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()