[ROOT] TH1 draw options hidden in pads.

From: Mark.Hayes@desy.de
Date: Wed Nov 22 2000 - 12:33:32 MET


Hi All,

Quick technical question. 

If I draw a TH1-style plot to a pad and then change the options using
the DrawPanel using the interactive stuff, how do I access the changes
made to the plot? 
As far as I can tell they are hidden in a TObjOptLink as part of the pad
TList, whose pointer I can't get hold of (legally) and this kind of
solution:

plot_pad->GetListOfPrimitives()->FindObject(drawn_object)->GetOption()

just returns the original object options.

Why do I need this? I have written a GUI which displays and updates
plots continuously and the users want to use DrawPanel to change the
draw options - and then save them as new defaults. 

Thanks,
Mark Hayes



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET