[ROOT] Re: How to plot TGraph starting from point n

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sun May 19 2002 - 14:46:26 MEST


Hi Elena,

You can use the mouse to zoom on a graph. click on the x axis.
In a macro, you can use TGraph::DrawGraph. For example if
you have a TGraph *gr with 20 points, you can do

gr.DrawGraph(15,&gr->GetX()[4],&gr->GetY()[4],"alp");

Rene Brun

On Wed, 15 May 2002, Elena Vataga wrote:

> 
> 
> 
> Hello, rooters!
> 
> I have a set of TGraphs made with:
> TGraph* gr1[Wed] = new TGraph(36,z,punt1);
> 
> Is there a way to Draw TGraph using only part of those vectors?
> (like it was in paw - for example use 10 points starting from 3)
> 
> 
> Sorry, failed to find it in documentation.
> 
> Thank you in advance,
> 			Elena
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET