Re: [ROOT] Putting in lines for cuts 'n' stuff

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue May 23 2000 - 17:46:22 MEST


Hi Claire,
Use TLine, eg
 TLine *line = new TLine(xmin,ymin,xmax,ymax);
 line->Draw();

where xmin,ymin, etc are the begin/end coordinates of the line in the current
pad coord system. To draw a line from the bottom of the pad to the top at the
x position xx, do
 TLine *line = new TLine(xx,gPad->GetUymin(),xx, gPad->GetUymax());

Rene Brun


Claire Gwenlan wrote:
> 
> Hi Everybody,
> 
> I just want to put a simple vertical line on my graph to represent various
> cuts. Is there an easy way to do this?
> 
> Cheers,
> 
> Claire
> 
> __________________________________
>  Claire Gwenlan
>  Department of Physics & Astronomy
>  University College London
>  Gower Street
>  LONDON
>  WC1E 6BT
> 
>  Tel: (0171) 419 3454
> _________________________________



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