Matplotlib: Python Plotting Package

3.10.8 · active · verified Sat Mar 28

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. As of version 3.10.8, it continues to be actively maintained with regular updates and improvements.

Warnings

Install

Imports

Quickstart

A basic example to create and display a simple line plot using Matplotlib.

import matplotlib.pyplot as plt

# Create a simple line plot
plt.plot([1, 2, 3], [1, 4, 9])
plt.title('Simple Plot')
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.show()

view raw JSON →