Re: Another arrow question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Nov 15 1999 - 18:46:23 MET


Hi Michal,

TAttLine::SetLineWidth expects an integer as argument, not a float.
In your case, line width < 1 are taken as 0.

In version 2.23/09, You will have the possibility to specify a scale
factor for the Postscript line width (TStyle::SetLineScalePS(float
scale=3)

Rene Brun

lijowski@cosray2.wustl.edu wrote:
> 
>    Hello,
> 
>    The Postscript output of the following macro shows two thin arrows
>    and one thick arrow. Is it possible to get a line with a thickness
>    in between in ROOT 2.23/08.
> 
>      Thank you with regards,
> 
>      Michal Lijowski
> 
> {
> 
>    gROOT -> SetStyle("Plain");
>    gStyle -> SetOptStat(0);
>    gStyle -> SetCanvasColor(10);
> 
>    TCanvas *c1 = new TCanvas("c1", "c1", 800, 600);
>    TH2F *h2r = new TH2F("h2r", "test", 2, -30.0, 300.0, 2, -30.0, 300.0);
>    h2r -> Draw();
> 
>    TArrow *arr = new TArrow();
>    arr -> SetLineWidth(0.5);
>    arr -> SetArrowSize(1.0);
>    arr -> DrawArrow(50.0, 30.0, 210.0, 30.0, 0.01);
> 
>    arr -> SetLineWidth(0.8);
>    arr -> DrawArrow(50.0, 50.0, 210.0, 50.0, 0.01);
> 
>    arr -> SetLineWidth(1.0);
>    arr -> DrawArrow(50.0, 70.0, 210.0, 70.0, 0.01);
> 
>    c1 -> Update();
> }



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET