Re: [ROOT] suggestion, and a couple of questions

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Sep 09 2002 - 17:44:50 MEST


Hi Dmitri,

On Mon, 9 Sep 2002, Dmitri Litvintsev wrote:

> 
>  Hi ROOTers,
> 
> This is the link to a page from PAW manual :
> 
> http://ncdf68.fnal.gov/~litvinse/sets.jpg
> 
> 
>  This is a graphic explanation of all relevant setting parameters.
> 
>  suggestion:
>          I am really missing such a picture in ROOT manual. Could you
> 	 consider adding similar picture to it?
> 
I agree with your suggestion. The only problem is that there are many more
parameters to describe than in PAW. Since most of these parameters are
described in TStyle, it is probably better if you have a look at all
the possible settings in TStyle.h

 >
question 1:
>          how can I set the width of the histogram frame from the command
>          prompt?

You can set it globally or just for the local pad:
  -gStyle->SetPadLeftMargin(0.15); //same for right,top,bottom margins
  -gPad->SetLeftMargin(0.15);

> 
>          Is where TStyle setter that controls this width that can be
>          set once for the whole session?

via gStyle as shown above

> 
>  question 2:
>          How one changes the precision format of the numbers shown
>          in stat box or fit box of the histogram? How can it be set to
>          scientific format for example.

see gStyle->SetStatFormat
> 
>  problem:
>          If I plotted a histogram and then superimposed another
>          histogram on the top of it such that the latter has some
>          solid FillColor set, the tick marks on axes get obscured.
>          This is very inconvenient. I think in PAW one could just
>          redraw the first histogram once again with S option to recover
>          ticks or at least there was some such trick. In ROOT am able
>          to come up with the only solution of plotting filled histogram
>          first and then superimposing unfilled one on the top of it,
>          then ticks are OK, but this method does not work if you have
>          several filled histograms.
>          (once could also create axes separately and plot
>          them on the top of the picture, but this is very tedious).

Use gPad->RedrawAxis()

Rene Brun

> 
>  regards,
>  Dmitri Litvintsev
> 
>  /----------------------------------------------------------\
>  | Tel:       (630) 840 5005                                |
>  | FAX:       (630) 840 2968                                |
>  | office:    149-L CDF Trailers                            |
>  | E-mail:    litvinse@fnal.gov                             |
>  \----------------------------------------------------------/
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET