Line plot

February 4, 2023

Below is a simple example of plotting a line using Matplotlib.

>>> import matplotlib.pyplot as plt
>>> x = [2, 7, 4.1, 8, 12, 9.2]
>>> plt.plot(x)
>>> plt.show()

line plot