First install Python 3.x:
- PIP is a package management system used to install and manage software packages written in Python. It stands for “preferred installer program” or “Pip Installs Packages.” PIP for Python is a utility to manage PyPI package installations from the command line. If you are using an older version of Python on Windows, you may need to install PIP.
- Download Mac OS X 64-bit/32-bit x86-64/i386 Installer; Python 2.6.9 - Oct. No files for this release. Python 3.3.2 - May 15, 2013. Download Mac OS X 32-bit.
- Install the 64bit version of Python 3, for instance from Install Python 3 using homebrew (brew install python) or by manually installing the package from Install python3 and python3-pip using the package manager of the Linux Distribution.
- Python and OS Compatibility¶. Pip works with CPython versions 2.7, 3.5, 3.6, 3.7, 3.8 and also PyPy. This means pip works on the latest patch version of each of.
Even if you have an older version of Python, e.g., Python 3.2, on your laptop, you can still install a newer version, e.g., 3.5 or 3.6
- On your Windows machine download and install the latest Python 3 Releasefrom Python Release for Windows
- On your Mac, you need to download and install Mac OS version of Python 3 Release from Downloads for Python for Mac OS X
The easiest way is to download the Python installer from the python.org website. Visit Python.org and download the latest available Python installer file; Run the downloaded file and install Python 3.x on Mac. Python 3.6.x requires about 100MB of available disk space.
Second install Matplotlib:
Note: You must install Python 3.5 or 3.6 on your laptop before you install Matplotlib!
- On a Mac laptop:After you have Python 3.5.1 installed, open a new Terminal.app (in Application/Utilities) window and type the following:
pip3 install matplotlib pip3 is the Python 3 version of pip. pip3 will install all the necessary libraries. Almost like magic!I noticed the first time I ran a Python 3 program using the matplotlib, I received a warning that it was building a font cache and might take a minute. - On a Windows laptop:After you have Python 3.5.1 installed, open a new Command Prompt Window. You can do this by typing in 'Command Prompt' in the search box that pops up when you click the Start Button (more detailed directions here).Once the Command Prompt (black) screen shows up, type the following:
pip3 install matplotlib pip3 is the Python 3 version of pip. pip3 will install all the necessary libraries. Almost like magic!Now you're ready to import the Matplotlib and NumPy packages in IDLE. Try out a few plots by reading the Matplotlib Tutorial below.
Try Out Matplotlib:
Notice when you install Matplotlib, the numerical package NumPy is installed at the same time.
Download Pip For Python 2.7
See CSCI 203 Matplotlib Tutorial to get started.
Download Python-pip For Mac High Sierra
Try some examples in Matplotlib's Gallery.