Adding a blogpost to the gallery

logo of a chart:Density

A few guidelines explaining how to add a proper blogpost to the python graph gallery. Each blogpost of the gallery is a .ipynb notebook. Here is how to build another one:

Welcome in the introductory template of the python graph gallery. Here is how to proceed to add a new .ipynb file that will be converted to a blogpost in the gallery!

Notebook Metadata

It is very important to add the following fields to your notebook. It helps building the page later on:

  • slug: the URL of the blogPost. It should be exactly the same as the file title. Example: 70-basic-density-plot-with-seaborn
  • chartType: the chart type like density or heatmap. For a complete list see here, it must be one of the id options.
  • title: what will be written in big on top of the blogpost! use html syntax there.
  • description: what will be written just below the title, centered text.
  • keyword: list of keywords related with the blogpost
  • seoDescription: a description for the bloppost meta. Should be a bit shorter than the description and must not contain any html syntax.

Add a chart description

A chart example always come with some explanation. It must:

contain keywords link to related pages like the parent page (graph section) give explanations. In depth for complicated charts. High level for beginner level charts

By the way we should be able to include emojis 🎉 🌈 👍 👏 .

import seaborn as sns, numpy as np
np.random.seed(0)
x = np.random.randn(100)
ax = sns.distplot(x)

A few notes

It is possible to write in a quote to highlight an important message

🚨 Grab the Data To Viz poster!


Do you know all the chart types? Do you know which one you should pick? I made a decision tree that answers those questions. You can download it for free!

    dataviz decision tree poster