Matplotlib
Description:
- Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib makes easy things easy and hard things possible.
Resources:
- https://matplotlib.org/
- https://matplotlib.org/stable/plot_types/index.html
- https://matplotlib.org/stable/index.html
- https://matplotlib.org/cheatsheets/
Example 1
Section titled “Example 1”Plot a pie chart
import matplotlibimport matplotlib.pyplot as plt
slices_hours = [4, 8]activities = ['Sleep', 'Work']colors = ['r', 'g']plt.pie(slices_hours, labels=activities, colors=colors, startangle=90, autopct='%.1f%%')
ganymede is made by Eugo