___Dear all,
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? Thank you,
Svante Please read tips for efficient and successful posting and posting code
_ROOT Version:_6.18/04 Platform: Not Provided Compiler: zsh
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.