How to fill two different histogram by two different colour?

Hi !
How can I draw following attached type of histogram means fill with different colour for different histogram. What are the lines I have to add for this ?

Thanks


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


h1->SetFillColor(kBlue);
h2->SetFillColor(kOrange);

@couet You forgot to SetFillStyle :wink:

1 Like

Thanks to both of you. Got this.

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