Python Matplotlib

Matplotlib Get Started

Installation and setup

Matplotlib Get Started

Now let's create a simple plot to get started with Matplotlib.

Simple Plot

import matplotlib.pyplot as plt
import numpy as np

x = np.array([0, 6])
y = np.array([0, 100])

plt.plot(x, y)
plt.show()