Re: [ROOT] drawing graphs

From: Allister Levi Sanchez (allister@hep.sc.niigata-u.ac.jp)
Date: Thu Jan 31 2002 - 06:53:23 MET


Hi Rene,

Thanks.  Perfect!

I dig ROOT :^),
Allister

Rene Brun wrote:

> 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