Home | News | Documentation | Download

SetMinimum for TH3


#1

Hello,

Is there a function allowing for setting sort-of minimum on TH3? In a “BOX” display I would like to display boxes only for the cells with content > minimum.


#2

It looks like SetMinimum() has no effect on the 3D box plot:

{
 TH3F *h3 = new TH3F("h3","h3", 10, 0,1,10, 0,1,10, 0,1);
 h3->Fill(.4,.4,.4,10.);
 h3->Fill(.5,.5,.5,5.);
 h3->SetMinimum(6.);
 h3->Draw("box");
}

#3

Yes. I understand, that in principle it should do what I described?


#4

I am looking at the code now. The Min and Max of the histogram are ignored when plotting it as boxes. I am fixing it.


#5

This is now fixed in the ROOT master. Thanks for reporting it.


#6

Thank you!


#7

Did you fix it by any chance in 5.34? I forgot to report that this is the version I am using.


#8

No … I will .


#9

Done


#10

=D>


#11

:smiley: :wink:


#12

Thanks!