v Matplotlib, A Simple Example - Python

Matplotlib, A Simple Example

Tell Jupyter to load matplotlib and display all visuals created inline (that is, on this page)

%matplotlib inline

Import matplotlib's pyplot module

import matplotlib.pyplot as pyplot

Create a simple plot

pyplot.plot([1.6, 2.7])
[<matplotlib.lines.Line2D at 0x10c4e7978>]

png