Drawing conotur plot in ROOT using ntuple

I am not quite familiar with ROOT. I am trying to generate a 2-D contour plot using two variable x,y and function z(x,y) where z should be represented by colored contours. How can I do that using NTuple?

Hi,

You should be able to draw the contour plot directly from the tuple by using z(x,y) as the weight when filling the 2D histogram. You need to use the formula expression representing the z(x,y) function.

ntuple->Draw("x:y","z(x,y)","CONTZ")

Best Regards

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.