Plotting Array Elements In TDataFrame

Hello,

Is it possible to directly histogram specific array elements with the Histo1D function in the TDataFrame?

Something along the lines of
h=df.Histo1D(('','',100,-0.5,99.5),'x[0]')
where x is an array. This crashes with
TypeError: can not resolve method template call for 'Histo1D'.

Right now I am finding that I have to define each element explicitely and plot that using
h=df.Define('x0','x[0]').Histo1D(('','',100,-0.5,99.5),'x0')


Karol Krizka

Hi Karol,

TDataFrame follows functional programming principles. In this case, the procedure you are following is correct: create a column with the element of the array you would like to plot.

Cheers,
D

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