Skip to content

Matplotlib

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.

Source code


Overview

Matplotlib aims to create static, animated, and interactive visualizations of data. It is commonly used in scientific computing, data analysis, and machine learning.

A wide range of plot types are available (eg. line charts, bar graphs, scatter plots, and much more) and are easily customizable. Matplotlib can be used in Python scripts, Python/IPython shells, web application servers, and various graphical user interface toolkits.

A Quick Start Guide is available for new users.

Installation

Matplotlib can be easily installed with conda or pip, please refer to the installation guide available in the documentation.

Usage examples and tutorials

Numerous usage examples are provided in the official Matplotlib's documentation for different types of 2D and 3D plots.

Moreover, tutorials are available in the documentation.

Below is an example of a plot created with Matplotlib to study the relationship between two variables related to wind speed. The central plot represents the density of data points. The darker the area, the higher the concentration. Histograms on the top and right display the distribution of each variable.

MajaScene

Resources

Tutorials

Contacts