New matplotlib English official website.

What is Matplotlib?

Matplotlib is a Python 2D drawing library that produces publishing quality level graphics in a variety of hard copy formats and cross-platform interactive environments.

Why choose Matplotlib?

If you find yourself learning Matplotlib one day, it is probably because: 1. Matplotlib is a very powerful Python drawing tool; 2. There is a lot of data in hand, but I don't know how to present it.

Can Matplotlib help you?

Draw line graphs, scatter plots, contour plots, bar graphs, histograms, 3D graphics, and even graphic animations.

# As Easy as 1, 2, 3

# 1. installation package
$ pip install matplotlib

# 2. enter python's interactive interface
$ python -i

# 3、Draw a scatter plot using matplotlib's scatter method
>>> import matplotlib.pyplot as plt
>>> x = [1, 2, 3, 4, 5]
>>> y = [2.3, 3.4, 1.2, 6.6, 7.0]
>>> plt.scatter(x, y, color='r', marker='+')

# 4、Output result
# Your computer will then pop up a window with the final chart effect.


Change the world from Python.

This site is recommended to use Python 3.x (opens new window) and above.