Two palettes

Hello,
I want to plot two histograms, say as “cont”, superimposed over the same frame,
and I want each of them to be colored according to a different palette.
Is that possible?

root.cern.ch/drupal/content/how- … ame-canvas

see an example below

Rene

{ TCanvas *c1 = new TCanvas("c1"); TH2F *h1 = new TH2F("h1","h1",40,-4,4,40,-4,4); TH2F *h2 = new TH2F("h2","h2",40,-4,4,40,-4,4); Double_t a,b; for (Int_t i=0;i<5000;i++) { gRandom->Rannor(a,b); h1->Fill(a-1.5,b-1.5); h2->Fill(a+1.5,b+1.5); } TExec *ex1 = new TExec("ex1","gStyle->SetPalette(0);"); TExec *ex2 = new TExec("ex2","gStyle->SetPalette(1);"); ex1->Draw(); h1->Draw("cont0z"); ex2->Draw(); h2->Draw("cont0 same"); }