Line plot

Posted on May 01, 2021



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



Back


Gavin Wiggins © 2021