A multiplatform data visualization library
, MatPlotLib
• Matplotlib is a multiplatform data
visualization library built on NumPy arrays,
and designed to work with the broader SciPy
stack.
• It was conceived by John Hunter in 2002,
originally as a patch to IPython for enabling
interactive MATLAB-style plotting via gnuplot
from the IPython command line.
, • This cross-platform, everything-to-everyone
approach has been one of the great strengths of
Matplotlib.
• It has led to a large userbase, which in turn has led
to an active developer base and Mat plotlib’s
powerful tools and ubiquity within the scientific
Python world.
import matplotlib as mpl
import matplotlib.pyplot as plt
plt.style.use('classic')
x = np.linspace(0, 10, 100)
plt.plot(x, np.sin(x))
plt.plot(x, np.cos(x))
plt.show()