I would like to draw 2D histograms with “colz” options, but the colors be transparent. Ie, doing this works:
gStyle->SetPalette(kBird,0,0.5); // default palette with 0.5 for alpha
hist1->Draw("colz");
hist2->Draw("colz same"); // the two histograms will have transparent colors, and overlapping bins are visible
However, this doesn’t work when I define my own color palette:
gStyle->SetPalette(ncolors,mypalette,0.5); // custom color palette with 0.5 for alpha
hist1->Draw("colz");
hist2->Draw("colz same"); // the two histograms will have opaque colors, and overlapping bins will be overridden by the order of histograms drawing
I am not sure why this shouldn’t work. Any help would be appreciated!