I need to color the line of a histogram drawn with “histo” option in a range of 30 bins, e.g. from 1300 to 1330 bin but I can’t find a way. I can also highlight the area under the corresponding region.
Can you tell me a way to do that?
Please read tips for efficient and successful posting and posting code
Platform: Not Provided
You need to plot the original histogram and then a clone of it on top (using option “SAME”) with the range you are looking for.
To highlight the second histogram, use SetLineColor, SetFillColor, SetFillStyle (https://root.cern.ch/doc/v614/classTAttFill.html)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.