Re: Some things sync'd with gStyle, others not?

From: Roel Aaij <Roel.Aaij_at_cern.ch>
Date: Sun, 4 Apr 2010 12:02:56 +0200


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

-- 
Roel aaij
Nikhef, office N227         Tel: +31 (0)20 592 2069
Sciencepark 105             Mob: +31 (0)641 370 757
1098 XG Amsterdam


Received on Sun Apr 04 2010 - 12:03:10 CEST

This archive was generated by hypermail 2.2.0 : Sun Apr 04 2010 - 17:50:02 CEST