Re: Histogram manipulation...

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Sep 15 1999 - 08:59:15 MEST


Hi Daniel,

Daniel Flath wrote:
> 
> Hello,
> 
> I am reading previously generated histograms (TH1F) out of .ROOT files
> and then modifying the layout of the histograms through code.  I have
> found documentation for manipulating the histogram title and stats
> boxes, but have yet to find documentation or histogram functions for
> moving the actual plot through code.  How does one go about this?
>
What do you mean by "moving the actual plot through code" ?
See class TH1 for the list of functions that can be applied to an
histogram.
 
> Also -- is it possible to get a pointer to the TStyle object containing
> the properties of the title and stats box without using the global
> variable gStyle?  I can't find a member function in the hstogram classes
> which returns this pointer.

You can use TROOT::GetStyle to get a pointer to a given style by name.
The default style is named "Default").
TStyle contains many functions to return the current attrributes.


Rene Brun

> 
> Regards,
> Dan.
> 
> Daniel Flath
> LCD Group
> Stanford Linear Accelerator Center
> <dflath@slac.stanford.edu>
> (650) 926-8794



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET