I have a series of TGraph2Ds which I plot using option “SURF1”.
The x, y and z axes are all plotted from 0 to 1.
I would like to make white the display color for those points on the surface plots where z==0 or z less than a small arbitrary value (e.g. z<0.1).
I am currently using a default color pallette for the SURF1 plots but the plots look very different when run on a linux system compared to a Windows 7 system (the color plotted for z==0 on linux is grey while for Windows it is dark blue).
I would be happy with grey-scale for the SURF1 plots, with the caveat that I would prefer the lightest possible color for z==0 (preferably white).
Any guidance you can give on this will be greatly appreciated.
I am using the standard ROOT 5.24 Windows executables on Windows 7 (I can’t use 5.26 because of the TGraph::Eval() issue). I am using ROOT 5.27/01 built from the trunk on linux.
Generating a custom color pallette works fine, but my problem is that each of my attempts results in a pallette in which z==0 on a 0 to 1 scale is represented by a dark colour rather than white (or very light grey).
For some cases I can work around this by plotting the negative image of my data but this doesn’t cover all of the cases.
Could you please indicate for me how to force the colour assigned to teh lowest numerical values in my dataset to be a light colour and the highest values a dark colour. As noted above, my custom generated pallettes’ all seem to make the lowest values dark instead of light.
Does the script I send you answer your question ?
I looked at your script. Modify it the same in the same way of the one I sent you and it should be ok.