Hi Vuko,
do:
gStyle->SetOptTitle(0);
to suppress the drawing of the title.
You can also reset the histogram title, with, eg:
htemp->SetTitle("");
Rene Brun
On Thu, 4 Apr 2002, Vuko Brigljevic wrote:
> Hi ROOT friends,
>
> I am getting the following error while saving an eps file
> with the line:
>
> gPad->SaveAs(epsFile);
>
> Error in <TPostScript::Text>: too many characters in input string (505)
> Error in <TPostScript::Text>: too many characters in input string (505)
>
> As far as I can tell, the problem is that the string describing
> the tree selection used to fill this histogram is very long, actually
> gDirectory()->ls() shows it (just the relevant fraction printed out):
>
> TROOT* Rint The ROOT of EVERYTHING
> OBJ: TH2F srhist ((time>1009872000 && time<1015977600)*scaler1_16
> + (time>1009872000 && time<1015977600)*scaler1_17 + (time>1009872000 &
> & time<1015977600)*scaler1_18 + (time>1009872000 &&
> time<1015977600)*scaler1_19 + (time>1015977600 &&
> time<1016726400)*scaler1_16 + (time>10159
> 77600 && time<1016726400)*scaler1_17 + (time>1015977600 &&
> time<1016726400)*scaler1_18 + (time>1015977600 &&
> time<1016726400)*scaler1_19 + (tim
> e>1016726400 && time<1262332800)*scaler1_16 + (time>1016726400 &&
> time<1262332800)*scaler1_17 + (time>1016726400 &&
> time<1262332800)*scaler1_18
> + (time>1016726400 && time<1262332800)*scaler1_19):time
> {time>1015340968 && time<1017932968 && ( (time>1009872000 &&
> time<1016726400) ) } : 0
>
> and it cannot print it in the eps file. In fact the plot is fine,
> but that text box is empty.
>
> Should I worry about it? Actually, I'd like anyway to get rid of that
> box in the plot where the tree selection criteria are written. Is there
> an option to tell root not to draw it?
>
> Thanks,
>
> Vuko
>
> --
> ========================================================================
> Vuko Brigljevic, Dr.sc.nat. ETH Zurich | Mail : CERN, Div. EP
> Lawrence Livermore National Laboratory | 1211 Geneve 23
> Nuclear and Particle Physics Division | Switzerland
> | CERN-Office : B32-3C21
> Member of the BaBar Collaboration | Phone : +41-22-767 9389
> <vuko@slac.stanford.edu> <http://www.slac.stanford.edu/~vuko>
> ========================================================================
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET