Re: [ROOT] Some problems with TLatex and TF1

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 13 2000 - 17:39:55 MEST


Hi Gora,

gora@solar2.ucr.edu wrote:
> 
> Hello,
>   The use of the TLatex class crashes ROOT. This happens even when trying to
> execute the tutorial macro latex.C. I am using ROOT v2.23 on a Linux box (Suse
> 6.2, kernel 2.2.10), compiled with g++ 2.95.1. Is this a known problem that has
> been fixed in later versions, or is there something wrong with my installation?
> The only error message I get is:
>   *** Break *** segmentation violation
> 

A few people have reported this problem when compiling with gcc2.95.
This seems to be a compiler problem. Compiling with noopt seems OK.

>   Also, TF1 seems to have problems drawing line styles other than solid when
> the drawing area is small. E.g., the following macro produces identical plots
> on both pads, whereas the second one should have a dot-dashed line
> (incidentally, the documentation on TAttLine says that 3 gives a dot-dashed
> line while 4 is a dotted one, which seems to be backwards from what I get).
> Manually enlarging the second pad does make the line dot-dashed. These
> problems persist in the Postscript output.

I cannot reproduce this problem. The documentation of TAttLine has been updated.

Could you try 2.24/05 ? see the release notes for this version.

Rene Brun


> {
>  gROOT->Reset();
>  TCanvas *c1 =new TCanvas("c1", "Example", 200, 10, 1000, 500);
>  c1->Divide(2, 1, 0.05, 0.05, 0);
>  c1->cd(1);
>  TF1 *f1 = new TF1("f1", "sqrt(4*x)", 1, 8);
>  f1->Draw();
>  c1->cd(2);
>  TF1 *f2 = new TF1("f2", "sqrt(4*x)", 1, 8);
>  f2->SetLineStyle(4);
>  f2->Draw();
> }
> 
> Regards,
> Gora



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