Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plotting graphs with error ribbons in python

for a while I've been trying to come up with a good way to graphically represent a data series along with its estimated error.

Recently I saw some graphs where the data was plotted as a line, with a background 'ribbon' filling the area between the lines plotting data +/- sigma.

Is there a name for this type of graph, and is there any python toolkit which has the capability to make such plots?

A simple way to fake it with matplotlib would also be useful - right now I'm just plotting three lines, but I don't know how to fill the area between them.

like image 523
so12311 Avatar asked Jan 24 '12 21:01

so12311


1 Answers

I would use the fill_between method. Look at the Our Favorite Recipes section of the manual for matplotlib for some good examples. They have one that looks like this:

enter image description here

and another that looks like this:

enter image description here

like image 168
Yann Avatar answered Sep 22 '22 14:09

Yann