Hi Vassili,
see:
http://root.cern.ch/root/html/TAxis.html#TAxis:ImportAttributes
Cheers
Otto
Vassili Maroussov wrote:
> Dear ROOTers,
>
> I'm wondering whether there is a fast way to copy all attributes
> (number of bins, title, etc.) of an axis of one histogram to an axis
> of another. A mean, something like
>
> TH2F hist1(...);
> TH1F hist2(...);
>
> *(hist2.GetXaxis()) = *(hist1.GetYaxis());
>
> Is the operation above correct or in general it creates a corrupted
> histogram with an improper set number of bins?
>
> Regards,
>
> Vassili
>
>
-- Dr. Otto Schaile Department f"ur Physik, LMU M"unchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany Mobil: +49 160 1553598 FAX: +49 89 289 14072 EMail: Otto.Schaile_at_Physik.Uni-Muenchen.DEReceived on Thu Feb 21 2008 - 20:36:01 CET
This archive was generated by hypermail 2.2.0 : Thu Feb 21 2008 - 23:50:02 CET