I would like to draw a fill area under a TGraphErrors. I found in the documentation that this can be achieved by the drawing option “F”. Unfortunately, the result does not look like expected. Instead of drawing a fill area underneath the whole graph (meaning between the points and the x-axis), ROOT connects the first and the last point and only fills the area in between (see attached plot). Does anyone have a suggestion how to get the fill area I would like? (I could add an additional point at (0,100) but that would only be a “dirty” workaround.)
At the moment I am using:
if (iem==0) graph->Draw(“APF”);
Thanks in advance!
plotgraphs.pdf (15.3 KB)