Dear everyone,
I am struggling to improve a 2 D plot I made in order to see better the colors and points…by changing the draw option or something like that but have some troubles to do it.
For instance here is my code that generate the plot:
I see you are using the box option but your histograms are TH1F … box is an option for 2D histograms. Simply try the default option … The doc about histograms’ plotting options is here: https://root.cern/doc/master/classTHistPainter.html
Hi,
I am not an expert in root so may be I am wrong, but it seems that for 1 D histogram like your exemple this is not a problem, it works but with 2D histogram it doesn’t take into account the color even when I try prof option.
I can send the entire code may be there is something that caused that but I don’t think so.
Cheers
But in the example you posted at the beginning, all your histograms are TH1F …
Can you post one of your root file containing one of the histogram you plot ? or put in your public on afs…
Thanks a lot I found it thanks our discussion.
Could you just explain me something for my understanding? why it doesn’t take in account colors when using the default option even when I did the change by replacing TH1F by TH2D.
Cheers
I am not completely sure of what you are/were doing as I saw only partially your code. I guess you had mismatches between the type of histogram, the option you choose and the colour attribute you used… Good you found the solution.