Using gStyle in python

Hello,

I am new in using ROOT called by python and when building a plot,
I am currently trying to increase the space of the left margin using
the next lines, as the annotations on the y axis interfer with the y axis title :

    [i]      ....
           from ROOT import  gStyle
          ....
           class RootPlot():
             def __init__(...):
                 .....
                 self.canvas = TCanvas(...)
                 ....
                 gStyle.SetPadLeftMargin(0.9)

[/i]
This is accepted when the python program is launched but the plot
remains the same. I guess this is not written correclty : I do not know
how to link gStyle entity and the created canvas.

Can you tell me how to call correctly the gStyle entity ?

Thanks for your help,

       David Landriu

Hi,

You should manipulate the style before creating the canvases and drawing the histogram.

Cheers,
Philippe.