Python matplotlib Drawing Library Installation

Source: Internet
Author: User
Tags matplotlib tutorial

In general, when we do scientific calculations, the first thing to think of is MATLAB, but, the thought of the MATLAB installation package so big, I have a little to say what.

Matplotlib is Python's most famous drawing library, which provides a complete set of command APIs similar to those of MATLAB, and is ideal for interactive

For mapping. Matplotlib installation can be found in the website link http://matplotlib.org/users/installing.html

The installation process is generally referred to http://blog.csdn.net/daniel_ustc/article/details/9714163 this blog post, thanks to the next blogger.

Summarized as follows:

1. Download the installation matplotlib, and note that you want to match your Python version.

2. Install NumPy,

Perform:

Import Matplotlib.pyplot as Pltplt.plot ([+]) Plt.ylabel ('matplotlib Test')  ) plt.show ()

When you execute an import error, you install the dependent library.

3. Install dependent Library: All dependent libraries are installed with EXE's next exe, without EXE, after extracting the Python setup.py install.

Import Six

Importerror:no module named six

Six libraries:: https://pypi.python.org/simple/six/or https://pypi.python.org/pypi/six/#downloads

Raise Importerror ("Matplotlib requires Dateutil")

  Importerror:matplotlib requires Dateutil

dateutil:https://pypi.python.org/simple/python-dateutil/

Install dateutil before installing setuptools,:https://pypi.python.org/simple/setuptools/

Raise Importerror ("Matplotlib requires pyparsing")
Importerror:matplotlib requires pyparsing

: https://pypi.python.org/simple/pyparsing

The installation process is missing any library can go to https://pypi.python.org/simple/find, or http://www.lfd.uci.edu/~gohlke/pythonlibs/

Once the installation is complete, run the example above,

Import Matplotlib.pyplot as Pltplt.plot ([+]) Plt.ylabel ('matplotlib Test')  ) plt.show ()

Then you will see:

Matplotlib Tutorial The http://reverland.org/python/2012/09/07/matplotlib-tutorial/of Chinese translation.

Make scientific calculations with Python http://sebug.net/paper/books/scipydoc/index.html

Python matplotlib Drawing Library Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.