Histogram axis titles at creation time


I read in TH1 page:

It is also possible to specify the histogram title and the axis
titles at creation time. These titles can be given in the "title"
parameter. They must be separated by “;”:
TH1F* h=new TH1F(“h”,“Histogram title;X Axis;Y Axis;Z Axis”,100,0,1);

I tried, but it doesn’t work, I got just long title. Is that description wrong?


You must be using an old version. Try with 3.05/07 or 3.10.

Please always specify which version you use in this forum.