I want to plot 2 separate 2D histograms from the same large dataset, but I need to have different palettes for the 2 plots. I’m sending them to different canvases/pads, but when I use:
c1->cd();
gStyle->SetPalette( xxx );
hist1->UseCurrentStyle();
hist1->DrawCopy(“colz”);
c2->cd();
gStyle->SetPalette( yyy );
hist2->UseCurrentStyle();
hist2->DrawCopy(“colz”);
the 2 plots come out with the same colour scheme. I’ve tried using gPad->Update; gPad->Modified after each draw command, but this doesn’t help. Is there any way to use 2 colour schemes in the same macro?
But then if the palette I want to set is a custom one I need to assign this to one of the default palette settings … what is the best way of doing this?