Use default root5 pallet to root6

Dear co-rooters,

I am making a 2D histogram in root6 using the colz option.
By default the color pallet has yellow as the maximum value and blue the minimum as seen in the picture.

What I would like to do is use a different pallet and specifically the one from root5 (the following plot was made in root5, but I don’t want to switch versions just to change the pallet).

Is there a quick way to use root5’s default pallet?

Thank you very much in advance.

Maybe gStyle->SetPalette(0); or gStyle->SetPalette(1);

Thank you very much for your help!

Note that the change of default palette was done for very good reasons explained here.

The problem is that it’s not convenient when printed in black and white.

Rainbow Palette


How about gStyle->SetPalette(kGreyScale); or gStyle->SetPalette(kColorPrintableOnGrey); or gStyle->SetPalette(kGreyYellow);

Yes but in black and white the rainbow palette is completely misleading ! Your plot is completely unreadable as you cannot make the difference between a black square coming from the top of the palette or from the bottom. The luminance with the default palette is uniform and do not have this problem. Note that we have many more predefined palettes these days.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.