Matplotlib is an overall package for creating static, animated, and interactive visualizations in Python. It literally opens up a whole new world of possibilities for you! Especially when it is used with Numpy or Pandas library, one can do unimaginable things. The plots give may give a new insight altogether. Now, the question arises i.e. How to make it running on your computer? But a more primary question would be, what are its pre-requisites or as we call it, dependencies for the software to run on your computer?
- Python (>= 3.6)
- FreeType (>= 2.3)
- libpng (>= 1.2)
- NumPy (>= 1.11)
- cycler (>= 0.10.0)
- dateutil (>= 2.1)
- kiwisolver (>= 1.0.0)
We’re ready to get the Matplotlib on our system!
- Install libpng and Freetype using brew:
brew install libpng freetype pkg-config
- In case you’re working on MacPorts, execute the following instead:
port install libpng freetype pkgconfig
- Now install matplotlib from the source using:
python -mpip install
It’s the easiest to get it on Ubuntu since you can get all the dependencies by simply using the following command:
sudo apt-get build-dep python-matplotlib
- Environment setup for CherryPy
- How to setup Anaconda path to environment variable ?
- Set up Opencv with anaconda environment
- Setup Sending Email in Django Project
- Python | Django-allauth setup and Configuration
- How to Setup Sublime Text 3 for Python in Windows?
- Python - Setting up the Bokeh Environment
- Python | Add packages to Anaconda environment
- Set up virtual environment for Python using Anaconda
- Python Virtual Environment | Introduction
- Setup API for GeeksforGeeks user data using WebScraping and Flask
- Create virtual environment using venv | Python
- Using mkvirtualenv to create new Virtual Environment - Python
- Creating Python Virtual Environment in Windows and Linux
- Bar Plot in Matplotlib
- Using Matplotlib for Animations
- Pyplot in Matplotlib
- Grids in Matplotlib
- Matplotlib.pyplot.sci() in Python
- Matplotlib.pyplot.gcf() in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.