How to plot 3D data in a TH2 or TH3, with z of the data as an adjustable parameter

Hi,

I am trying to plot a 3D dataset as histograms. It has two position dimensions and one intensity dimension. The way I want to present is, show how many points above a specific intensity are distributed in the two position dimensions. That intensity threshold will only allow the data points that have intensity larger than that to be plotted.
Is it possible to have that threshold slider in th3 or th2? so when I use that slider to pick a threshold, only data points have z value(intensity) larger than that will be ploted, with the two position dimensions, and give a th2-like plot.

Thank you!
Yue


_ROOT Version: 6.24/06
_Platform: macos


You can use SetMinimum in your code, e.g.

 histo->SetMinimum(yourthresholdvalue);
 histo->Draw("colz");  //  if TH2 histogram
2 Likes