Re: [ROOT] TArrow question

From: Marco van Leeuwen (mvl@nikhef.nl)
Date: Tue Jun 27 2000 - 21:08:19 MEST


You can use a TArrow. This will accept pad-coordinates (i.e. in the same
scale as the coordinates in your Histogram/Graph/Axis). However, the
log-scale will be scaled in decades.

Marco van Leeuwen

{{
   gROOT->Reset();
   TCanvas *c1=new TCanvas("c1","Canvas #1",500,500);
   gPad->SetLogy();
   gPad->DrawFrame(0,1,1,1000);
   TArrow *arrow=new TArrow(0.3,2,0.3,1.5);
   arrow->Draw();
}}

On 27 Jun 2000 lijowski@cosray2.wustl.edu wrote:

> 
>   Hello,
> 
>   Is any way to draw an arrow on linear-log plot? I would like
>   to use arrow to indicate the upper limit. Should I use TGraph 
>   to draw it?
> 
>    Thank you and regards
> 
>    Michal Lijowski
> 



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