changing the title of a histogram

From: Chiara Zampolli <Chiara.Zampolli_at_bo.infn.it>
Date: Wed, 9 May 2012 12:25:18 +0200


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.

        Thanks!

                Chiara

Received on Wed May 09 2012 - 12:25:25 CEST

This archive was generated by hypermail 2.2.0 : Wed May 09 2012 - 17:50:02 CEST