Chart graphs with error streams in python

for a while I tried to come up with a good way to graphically represent a series of data along with an estimated error.

Recently, I saw several graphs where the data was built as a line, and the background β€œtape” filled the area between the lines displaying data +/- sigma.

Is there a name for this type of graph, and is there any python toolkit capable of creating such graphs?

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

+6
source share
1 answer

I would use the fill_between method. Have a look at our favorite recipes in the matplotlib manual 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

+7
source

Source: https://habr.com/ru/post/906793/


All Articles