Matplotlib gallery

This is a collection of matplotlib samples.

If you want to contribute, clone the gallery repository at https://github.com/rougier/gallery and submit a pull request for a new example:

  • Make sure to put your example in the right directory or create a new one if necessary.
  • Each example (but the showcases) is supposed to illustrate a concept and the source should be small enough such that understanding how things are done is easy.
  • Try to keep the default figure size and dpi (see any script), it will make the gallery cleaner
  • Try to avoid shortcuts (like 'c' instead of 'color'), this makes things more difficult to understand for new comers.
  • Try to make your example beautiful, especially for the showcase ones
Repository: https://github.com/rougier/gallery
Gallery: http://www.loria.fr/~rougier/coding/gallery/

spine

spine/spines-1.png

Source spines-1.py

spine/spines-2.png

Source spines-2.py

spine/spines-3.png

Source spines-3.py

spine/spines-4.png

Source spines-4.py

spine/spines-5.png

Source spines-5.py

spine/spines-6.png

Source spines-6.py

spine/spines-7.png

Source spines-7.py

spine/spines-8.png

Source spines-8.py

style

style/style-1.png

Source style-1.py

style/style-2.png

Source style-2.py

style/style-3.png

Source style-3.py

style/style-4.png

Source style-4.py

style/style-5.png

Source style-5.py

image

image/image-1.png

Source image-1.py

image/image-2.png

Source image-2.py

one-line

one-line/one-line-1.png

Source one-line-1.py

one-line/one-line-2.png

Source one-line-2.py

grid

grid/grid-1.png

Source grid-1.py

grid/grid-2.png

Source grid-2.py

grid/grid-3.png

Source grid-3.py

grid/grid-4.png

Source grid-4.py

grid/grid-5.png

Source grid-5.py

grid/grid-6.png

Source grid-6.py

grid/grid-7.png

Source grid-7.py

voronoi

voronoi/voronoi-1.png

Source voronoi-1.py

voronoi/voronoi-2.png

Source voronoi-2.py

voronoi/voronoi-3.png

Source voronoi-3.py

voronoi/voronoi-4.png

Source voronoi-4.py

voronoi/voronoi-5.png

Source voronoi-5.py

simple

simple/simple-1.png

Source simple-1.py

showcase

showcase/showcase-1.png

Source showcase-1.py

showcase/showcase-10.png

Source showcase-10.py

showcase/showcase-2.png

Source showcase-2.py

showcase/showcase-3.png

Source showcase-3.py

showcase/showcase-4.png

Source showcase-4.py

showcase/showcase-5.png

Source showcase-5.py

showcase/showcase-6.png

Source showcase-6.py

showcase/showcase-7.png

Source showcase-7.py

showcase/showcase-9.png

Source showcase-9.py