Assuming a histogram TH1F *h, you can do:
TH1F *hnew = (TH1F*)h->Clone("hnew");
hnew->SetBins(nbins,xmin,xmax); //new settings
hnew->Reset();
Rene Brun
Dimitris Sideris wrote:
>
> Part 1.1 Type: Plain Text (text/plain)
> Encoding: quoted-printable
Dear Rooters, I have a histogram and I want to create a new histogram which has
different values for the axis (xmin,xmax, bins etc) but retain the same settings
for style. Is there a better way of doing this appart from reapplying the
individual style commands?
Thanks
Dimitris
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:51 MET