I am currently struggling with setting the z-axis on a TF2. SetMinimum() does work to change the range, however all values below the minimum of the axis are then plotted as if they were exactly this minimum. Is there an option to discard all areas which exceed the z axis limits?
Minimal working example with one corner falling below the minimum:
void testTF2(){
TF2 f2 = new TF2(“myfunc”,"-xy",0,100,0,100);
f2->SetMinimum(-5.E3);
f2->Draw(“surf2”);
}
When I plot my data with the surf2 option, the very low values are not plotted by default. But as soon, as SetMinimum() was called, everything will be set to the lowest color. Unfortunately I am not allowed to attach more than one picture here.
Is there any easier solution, than editing the palette to have the lowest and highest color set to white?
This problem seems to exist for all the SURF options as shown below. In addition, the THistPainter documentation does not state that the SURF options are valid for TH3 objects.
But this is 2D data, not 3D. And for TH2 the surf options are listed in the THistPainter documentation.
And in this answer I can also upload my second picture, showing that the surf option in principle seems capable of leaving the bottom blank. Only after calling SetMinimum() everything will be set to purple.