gitwtfhub

wtf is gallery?

rougier/gallery — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2016-10-05

46PythonAudience · dataComplexity · 1/5DormantSetup · easy

TL;DR

A cookbook of small Matplotlib example scripts, each showing one clear technique for building charts and data visualizations in Python.

Mindmap

mindmap
  root((repo))
    What it does
      Matplotlib examples
      One idea per script
      Online gallery
    Tech stack
      Python
      Matplotlib
    Use cases
      Learn bar charts
      Add custom colors
      Copy example code
    Audience
      Students
      Data scientists
      Beginners

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Copy a small example script to learn how to build a specific chart type in Matplotlib.

REASON 2

Browse the online gallery to find a visualization style before writing your own plot.

REASON 3

Learn how to add custom colors and formatting to a plot from a clear, minimal example.

REASON 4

Submit your own clear or beautiful example as a pull request to grow the gallery.

What's in the stack?

PythonMatplotlib

How it stacks up

rougier/gallerybetta-tech/harness-sddemmimal/control-layer
Stars464646
LanguagePythonPythonPython
Last pushed2016-10-05
MaintenanceDormant
Setup difficultyeasyeasyeasy
Complexity1/52/52/5
Audiencedatadeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Just needs Python and Matplotlib installed to run any individual script.

Wtf does this do

This repository is a collection of example code showing how to use Matplotlib, a popular Python library for creating charts, graphs, and visualizations. Think of it as a cookbook of visual examples, each one demonstrates a specific technique or concept in data visualization. The gallery works simply: it's a set of Python scripts organized by topic or difficulty level. Each script is intentionally kept small and focused on teaching one idea clearly. When you run a script, it generates a chart or visualization that you can learn from. The repository then displays these examples in an online gallery so people can browse them and see what's possible. The main audience is people learning to visualize data with Python, students, analysts, data scientists, or anyone building charts for the first time. Instead of reading dense documentation or tutorials, they can look at a concrete example that says "here's how to make a bar chart" or "here's how to add custom colors to a plot." Contributors are also welcome to submit their own examples if they create a particularly clear or beautiful visualization. What makes this useful is the emphasis on clarity and simplicity. The examples avoid coding shortcuts and jargon, use consistent formatting, and showcase both practical techniques and artful designs. It's designed to be approachable, you can read the source code and immediately understand what each line does. The project accepts pull requests, so the community can grow the gallery over time with new examples that illustrate different visualization concepts and styles.

Yoink these prompts

Prompt 1
Show me the Matplotlib gallery example for making a bar chart and explain each line.
Prompt 2
Find an example in this gallery that shows how to add custom colors to a scatter plot.
Prompt 3
Help me adapt one of these Matplotlib examples to plot my own dataset.
Prompt 4
I want to contribute a new example to this gallery, what format and style should I follow?

Frequently asked questions

wtf is gallery?

A cookbook of small Matplotlib example scripts, each showing one clear technique for building charts and data visualizations in Python.

What language is gallery written in?

Mainly Python. The stack also includes Python, Matplotlib.

Is gallery actively maintained?

Dormant — no commits in 2+ years (last push 2016-10-05).

How hard is gallery to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is gallery for?

Mainly data.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.