I can’t seem to find any way of making my TH2F histograms being plot with number of contours different than default from a level of macro.
I can achieve it however, when I first type “gStyle->SetNumberContours(999)” into root console and then execute my macro. The very same command executed by the macro has no effect at all.
Here I enclose a minimal code to replicate my problem. I run it with ".x min.C++"min.C (705 Bytes)
This is quite strange, because it helped when I removed a declaration of my own TStyle “st1”.
Using just gStyle->… works like a charm. Am I doing something wrong with my declaration of TStyle?
And also it seems that the numbers of contours higher than 255 do make sense. Take a look at this macro:
As said here the predefined palettes have 255 colors: root.cern/doc/master/classTColor.html#C06
If you have the numbers of contours > 255 it means tu have more contours than colors…