Re: [ROOT] how to change the "title" of a pad

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun Feb 24 2002 - 14:19:30 MET


Hi Jacek,


On Sun, 24 Feb 2002, Jacek M. Holeczek wrote:

> Hi,
> > (...)
> > I've noticed something similar when trying to edit the title with the
> > mouse (eg, DeleteText and then InsertText from the gui menu).  The old
> > text disappears when I do DeleteText, and reappears when I do InsertText.
> > (...)
> As I have already written, use the sequence :
> 	1. Clear
> 	2. InsertLine
> 	3. InsertText -> input here the new "title"
> All these methods are ALSO available from the gui menu when you edit the
> "title". This seems to work.
> On this occasion I would like to report something. In my opinion the
> length of the string is calculated incorrectly in case there are some
> LaTeX characters inside. The PaveText is always created too wide (I guess
> the routine that calculates the length counts all characters as ASCII; it
> does not recognize "special" sequences of characters as "one character",
> for example "#alpha", or "no character", as for example "_{}").

NO. The Latex characters are taken into account. Could you send me a
short example where the pavetext is too wide?

>
The second (unrelated) problem is : if I have a TGraph which has not yet
> been drawn, then MyGraph->Get[XY]axis() ends with a Segmentation Fault.
> The root is 3.02/07 on a RH6.2/i386 with egcs-1.1.2.

Call TCanvas::Update() otherwise MyGraph->GetXaxis() will return 0.
See Users Guide or example $ROOTSYS/tutorials/graph.C

Rene Brun



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:42 MET