Hello,
i would like to draw an histogram TH1 with jsroot. From the examples i found, i wrote this simple script: https://www-fourier.ujf-grenoble.fr/~faure/enseignement/javascript/code/ex_JSROOT_TH1D.html
a sample of the code is:
for (var ix = 0; ix < 20; ix++) {
var bin = h1.getBin(ix + 1), val = 5*ix/20.;
h1.setBinContent(bin, val);
}
The problem is that the y values are integers instead of float numbers:
I don’t know how to correct this?
By the way, is it possible to change the title? to put some x-title? to remove the stat-box?
more generally how to perform operations similar to what is explained in the c++ documentation here: https://root.cern.ch/doc/v608/classTH1.html
Thanks a lot,
best regards,
Frédéric.
works fine in order to specify the X interval values.
But i don’t found how to fix the interval in Y, i.e. what is the equivalent of the c++ functions TH1:SetMaximum() and TH1:SetMinimum() ?
Is there a way to discover all the available functions in some source file by myself?