> Every page of the ganymede website is listed in https://eugo.io/docs/ganymede/llms.txt.

# Matplotlib

> Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

Web page: https://eugo.io/docs/ganymede/demo_notebooks/data_visualization/matplotlib/
Notebook: https://eugo.io/docs/ganymede/demo_notebooks/data_visualization/matplotlib/matplotlib.ipynb (source: https://github.com/eugo-inc/ganymede/blob/main/demo_notebooks/data_visualization/matplotlib.ipynb)

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

Plot a pie chart

```python
import matplotlib
import 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%%')
```

<figure class="gn-output"><img src="https://eugo.io/docs/ganymede/demo_notebooks/data_visualization/matplotlib/output-3-1.png" width="389" height="389" alt="Figure drawn by code cell 1" loading="lazy" decoding="async"></figure>
