Re: [ROOT] drawing graphs

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jan 30 2002 - 17:43:21 MET


Hi Allister,

Do the following:

TMultiGraph mg;
mg.Add(g1);
mg.Add(g3);
mg.Draw("acp");
g2->Draw("p");

Rene Brun

Allister Levi Sanchez wrote:
> 
> Dear ROOTers,
> 
> I have 3 graphs, say
> 
> TGraph *g1, *g2, *g3;
> 
> Suppose I have data spread along the x-axis.  I divide the whole x range
> into 3 sub-ranges so that g1 has range x0-x1, g2 has x1-x2, and g3 has
> x2-x3 x-values.  I want to draw g1 and g3 with option "ACP" but g2
> should be drawn with "AP". Is it possible to "superimpose" these graphs
> in one frame?  I tried TMultiGraph for connecting the 3 graphs but I
> can't draw them with different draw options.  Any ideas?
> 
> Cheers,
> Allister
> 
> -----------------------
> Allister Levi C. Sanchez
> Kenkyuusei
> Kou Enerugii Kenkyuushitsu
> Shizen Kenkyuuka Kagakuka
> Niigata Daigaku
> Nihon



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