_ROOT Version:6.12/06
_Platform: ubuntu 18.04
_Compiler: gcc version 7.3.0
Dear rooters,
I am trying to correlate 3 variables (x, y, z) that are stored as TBranches in a TTree (t) by plotting them in a 2D plot using the following command
t->Draw("x:y:z", " ", "colz")
What I get looks like that
Then if I do the same but I define a binning using t->Draw("x:y:z>>h(xbins, x1, x2, ybins, y1, y2, zbins, z1, z2)", "", "colz")
and I get the following plot which looks exactly the same as the previous one and it remains unchanged regardless of the binning I choose.
So this keeps me puzzled and question arise :
What is the z value in the (x,y) combination? I believe that it’s the maximum z-value, but I would like to confirm it.
The COLZ option used with TTree::Draw on 3 variables maps two variables on the x, y position and the 3rd one on the color map. That’s the plot you got. You can use other options like BOX, BOX1. They will fill an histogram and plot it with this option. You can also draw Parallel coordinates but I am not sure that makes real sense with 3 variables (to be tried). Do you have some other representations in mind ?