Fill area beneath curve

Hi,

can anybody please tell me how to fill the area beneath a curve?
I’ve seen https://root.cern.ch/doc/master/classTAttFill.html#ae3a05c48790cba0f1d3242513853249c but I don’t know how to apply.

At the moment I have:

TGraph *caesium = new TGraph(point_cs, Caesium_ch, Caesium_intensity);
caesium->SetMarkerSize(2);
caesium->SetMarkerColor(kRed);
caesium->SetMarkerStyle(5);
caesium->Draw(“AP”);

Thank you!

1 Like

yeah, this was apparently quite easy… :slightly_smiling_face:
Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.