Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fill area under list_plot

Hello!

Is there a way to fill the area between the two curves plotted using the list_plot() function?

My particular application is this: I have a list of points of the format (x, y, y_max, y_min), where y_max and y_min denote the maximum and minimum values of y for the given x value because of the measurements uncertainty. I need to plot this curve and fill the uncertainty corridor with some other color.

I use my own function that retrieves the data from this list and use plot() to obtain an abovementioned result at the moment. But in this case my function is evaluated in some kind of random points which do not correspond the exact experimental x values from the initial data list, that is why this solution is not very good too.

Thank you.