gStyle in pyROOT

Hi,

There seems to be a problem with gStyle in pyROOT in ROOT 4.01/02. I get the following
in a Python shell:

from ROOT import gStyle,gROOT
gROOT.SetStyle(“Plain”)
gStyle.GetName()
‘Default’

Even when I set gStyle to the new style by hand gStyle.SetOptFit() and gStyle.SetOptStat()
will not always work.

Martin

Martin,

quick workaround:

>>> import ROOT
>>> ROOT.gStyle.GetName()
'Default'
>>> ROOT.gROOT.SetStyle( 'Plain' )
>>> ROOT.gStyle = ROOT.gROOT.GetGlobal( "gStyle", 1 )
>>> ROOT.gStyle.GetName()
'Plain'

fix will be submitted later.

HTH,
Wim