Matplotlib is a is a plotting library for the Python programming language. It allows to make quality charts in few lines of code. Most of the other python plotting library are build on top of Matplotlib. It makes that a basic understanding
of matplotlib is probably needed to make any chart with python. I highly advise you to have a look to the matplotlib homepage and have a look to this general concept page. This page aims to give a few tip concerning the general
usage of Matplotlib. It gives examples showing how to custom your title, the colors of your chart, how to annotate it etc. If you need to make a chart in particular, visit the welcome page of the gallery to find the one you need!
Note that datacamp offers a good and free online course on Matplotlib. Worth it.
Sponsors
Manage titles
- #190 Add 2 titles
- #190 Math in title
- #190 Title font
- #190 Title on multi lines
Manage axis
- #191 Custom axis title
- #191 Custom ticks
- #191 Custom axis labels
- #191 Axis limits
Margins
- #192 Bottom margin
- #192 Top margin
Annotations
- #193 Annotate with text
- #193 Add an ellipse
- #193 Add math equation
- #193 Horizontal and Vertical lines
- #193 Add a segment
- #193 Add a circle
- #193 Add a rectangle
Subplots
- #194 Subplot with 2 lines
- #194 2×2 grid with subplot
- #194 Custom proportion on subplot
- #194 Subplot with custom proportion
Calling one color
- #196 Black and white colors
- #196 Use transparency
- #196 Hex colors
- #196 Abbreviated colors
Color palettes
- #197 Sequential palette
- #197 Reverse a palette
- #197 Diverging palette
- #197 Discrete palette
- Categorical palette
Matplotlib style sheets
- #199 Matplotlib style sheet
Charts made with matplotlib
The Python Graph Gallery contains hundreds of charts made with Matplotlib. Charts are distributed in several categories that you can find on the home page. Here is a subset of the categories that exist:
- Scatterplot
- Bubble plot
- 2D density plot
- Bubble map
- Choropleth map
- Tree plot
- BOXPLOT
- VIOLIN
- Venn diagram
- Stacked barplot
- Area plot
- Streamchart
- Stacked area plot
- Parrallel plot
- Barplot
- Lollipop plot
- Chord diagram
- Sankey diagram