GitHub - nickwork/matplotlib-gallery: Examples of matplotlib codes and plots

#matplotlib-gallery

This repository is a collection of different matplotlib plots in IPython notebooks that I needed for my data visualizations.

This project is not connected to the gallery on http://matplotlib.org/gallery.html, although there might be some overlap and redundancy.

To view the IPython notebooks, simply click on the header links or images.

Sections

I am looking forward to your contributions, suggestions, and ideas

If you have any suggestions or want to make additions, I would be very happy if you could send me

  • an email,
  • leave me a message on google+,
  • or even send me a tweet on twitter (given you can fit it within the 140 character limit ;)).

Or even better: It would be great if you would simply fork this project and send me a pull request.

2D histograms / heat maps / levelplots

[back to top]

![](./images/heatmaps.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/heatmaps.ipynb)][[GitHub Rendering](./ipynb/heatmaps.ipynb)]

3D Plots

[back to top]

![](./images/3dplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/3dplots.ipynb)][[GitHub Rendering](./ipynb/3dplots.ipynb)]

Bar plots

[back to top]

![](./images/barplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/barplots.ipynb)][[GitHub Rendering](./ipynb/barplots.ipynb)]

Boxplots and Violinplots

[back to top]

![](./images/boxplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/boxplots.ipynb)][[GitHub Rendering](./ipynb/boxplots.ipynb)]

Errorbar plots

[back to top]

![](./images/errorbars.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/errorbars.ipynb)][[GitHub Rendering](./ipynb/errorbars.ipynb)]

Formatting I: subplots, markers, colors, axes

[back to top]

![](./images/formatting_1.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/formatting_1.ipynb)][[GitHub Rendering](./ipynb/formatting_1.ipynb)]

Formatting II: gridlines

[back to top]

![](./images/formatting_2.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/formatting_2.ipynb)][[GitHub Rendering](./ipynb/formatting_2.ipynb)]

Formatting III: What it takes to become a legend

[back to top]

![](./images/formatting_3.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/formatting_3.ipynb)][[GitHub Rendering](./ipynb/formatting_3.ipynb)]

Histograms

[back to top]

![](./images/histograms.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/histograms.ipynb)][[GitHub Rendering](./ipynb/histograms.ipynb)]

Line plots

[back to top]

![](./images/lineplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/lineplots.ipynb)][[GitHub Rendering](./ipynb/lineplots.ipynb)]

Line plots

[back to top]

![](./images/lineplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/lineplots.ipynb)][[GitHub Rendering](./ipynb/lineplots.ipynb)]

Preparing Plots for Publication

[back to top]

![](./images/publication.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/publication.ipynb)][[GitHub Rendering](./ipynb/publication.ipynb)]

Scatter plots

[back to top]

![](./images/scatterplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/scatterplots.ipynb)][[GitHub Rendering](./ipynb/scatterplots.ipynb)]

Special plots

[back to top]

![](./images/specialplots.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/specialplots.ipynb)][[GitHub Rendering](./ipynb/specialplots.ipynb)]

Clustering - Heatmaps and Dendrograms

[back to top]

![](./images/heat_dendro.png) [[NBViewer](http://nbviewer.ipython.org/github/rasbt/matplotlib-gallery/blob/master/ipynb/clust_complete_linkage.ipynb)][[GitHub Rendering](./ipynb/clust_complete_linkage.ipynb)]

Tips and Tricks

[back to top]

[NBViewer][GitHub Rendering]