Thanks, that answered all my questions.
Roel Aaij wrote:
> Hi Cedric,
>
>> 1.) Is there a way to use sort of a global template as I intended to
>> without affecting already drawn objects?
>> 2.) What rule governs the application of gStyle?
>
> As far as I can see, gStyle is meant to make global changes to the way
> things are drawn, like the general background colour or the font used
> for text. It will always affect all objects, not just the ones which
> haven't been drawn yet.
>
> Drawable objects in ROOT all inherit from TAtt* classes, like TAttLine,
> TAttFill and TAttText, which contain methods for setting various
> properties. Whenever I need to draw things with specific attributes, I
> usually end up creating functions which in turn create my drawable
> objects and set the appropriate attributes.
>
> Because the reach and effect of gStyle on different objects is not
> always obvious, some experimentation will probably be needed.
>
> Greetings, Roel
>
Received on Sun Apr 04 2010 - 12:15:19 CEST