Re: [ROOT] Simple question on graph draw options

From: Rene Brun (
Date: Tue Jan 06 2004 - 18:45:43 MET

Hi Mina,

Currently TGraph::Browse uses the hardwired option "alp".
In the CVS version, I have modified this function.

By default the option is "alp" and can be modified by:
  -adding a line in system.rootrc with 
   TGraph.BrowseOption:  myoption

  -calling gEnv->SetValue("TGraph.BrowseOption",myoption)

Rene Brun

nozarm wrote:
> Hi all,
> I am running root version 3.10/02 built on my desktop, running rh9.0.
> Is there a way to set the default drawing options for graphs in a given
> root session?
> In a macro, I create a set of graphs which I draw with the "AP" option.
>   I save these graphs in a root file for later viewing.  When viewing
> these newly created graphs (in the same or a new root session) using the
> browser, the graphs are drawn with the "APL" option by default.   I
> tried using gStyle->SetDrawOption("AP"); even though I did not get any
> errors, when clicking on the graph names in the browser, the graphs were
> still drawn with the "APL" option.  When looking in the TStyle.cxx, I
> see that the SetDrawOption method is not implemented.   I tried adding
> the method in the appropriate files (TStyle.cxx, TStyle.h), recompiled
> root and reran it, but got the same old results, i.e. graphs are still
> drawn with the "ALP" option...
> I might be barking up the wrong tree, or there may be a simple
> solution...  Any suggestions would be appreciated.
> Best wishes,
> Mina

This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET