Gavin Wiggins

About  /  Notes  /  Photos

Line plot

Written on 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

Gavin Wiggins © 2024.
Made on a Mac with Genja. Hosted on GitHub Pages.