How to change colorbar

Hi, rooters

How to change the colorbar option, such as the color, to make my picture become more clear and more distinguishable.

My picture is TH2D, and the draw option is SURF3 and COLZ,
And I also tried LEGO2, the same results.

Best regrads

You can define your own palette or use a predefined palette, check and scroll down here:
https://root.cern/doc/master/classTColor.html#C05

1 Like

Thanks dastudillo.Very instructive advice

Check also: The Rainbow Color Map - ROOT

1 Like

Thanks couet.

The first thing I would try: gPad->SetLogz(1);

1 Like

Yes, the blog post I posted suggest settting Log scale on Z.

1 Like

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