Dear rooters,
is it possible to draw two histograms on one pad using the SAME option and different color tables?
Motivation: I want to overplot (highlight) a subset of the data in a 2D histogram.
Histogram range and binning are identical. Histogram 2 is a tcut version of histogram 1.
The basic idea was something like:
gStyle->SetPalette(53);
hist01->Draw("COLZ");
gStyle->SetPalette(51);
hist02->Draw("COLZ same");
which did not work…
the next idea was
TStyle *myhistStyle01 = new TStyle();
myhistStyle01->SetPalette(51);
TStyle *myhistStyle02 = new TStyle();
myhistStyle02->SetPalette(53);
myhistStyle01->cd();
hist01->Draw("COLZ");
myhistStyle02->cd();
hist02->Draw("COLZ same");
In both cases the colors of both histograms are changed, propably because I keep changing a pad/canvas property.
I’d be happy for any suggestions!
Thanks,
Markus