Re: changing the title of a histogram

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 9 May 2012 12:42:06 +0000


In a macro you should call gPad->Update() before caling GetListOfPrimitives

On May 9, 2012, at 12:25 PM, Chiara Zampolli wrote:

> Dear all,
>
> I would like to change the settings of the title of a histogram drawn in a pad. For example, the border size, and the alignment. While I can do it from the ROOT prompt, I cannot in a macro. From the ROOT prompt, I can use the ListOfPrimitives, and access the TPaveText of the title, but from a macro (e.g. the one attached) it does not work --> the title is not in the list of primitives of the pad. Any suggestion? Am I doing something wrong? Something I could change through gStyle, but it is not really what I would like to do. Moreover, I thought that the SetTitleAlign would have modified the alignment of the title, but if I change the parameter, it does not do what I expected. <testUpdate.C>
>
> Thanks!
>
> Chiara
Received on Wed May 09 2012 - 14:42:13 CEST

This archive was generated by hypermail 2.2.0 : Tue May 15 2012 - 11:50:02 CEST