Pie chart: a graph that represents the percentage of multiple components in a whole. The entire circle will have a value of 100%, inside is each small component with the corresponding percentage.

import matplotlib.pyplot as plt

# Data for the pie chart
sizes = [15, 30, 45, 10]
labels = ['Frogs', 'Hogs', 'Dogs', 'Logs']
colors = ['gold', 'yellowgreen', 'lightcoral', 'lightskyblue']

# Create the pie chart
plt.pie(sizes,  labels=labels, colors=colors,
        autopct='%1.1f%%', shadow=True, startangle=90)

# Ensure the circle is drawn as a circle
plt.axis('equal')

# Add a title
plt.title('Animal Distribution')

# Display the chart
plt.show()

Output:

Figure_1.png