Problem with palette

Hi,

why don’t I get the smooth palette no. 1 with this code

root [0] TH2F* hist;
root [1] hist = new TH2F(“histogram”,“hist”,10,-5,5,10,-5,5);
root [2] hist->FillRandom(“gaus”,10000);
root [3] gStyle->SetPalette(1);
root [4] hist->Draw(“col”);

But when I repeat the last two lines

root [5] gStyle->SetPalette(1);
root [6] hist->Draw(“col”);

everything looks OK. The ROOT version on our cluster is 5.17/02.

I do get the smooth palette #1 with this code run by ROOT 5.19/03.
Can you try a more recent version ?