On Mon, 16 Oct 2000, Silvia Borghi wrote: Hi Silvia, I guess you should use the option "S"ame instead of "A" for the 2nd, 3rd etc graph, .... gr->Draw("ACP"); // 1st graph with Axis ... gr->Draw("CPS"); // 2nd graph Same See the attached/modified macro graph.C from the tutorials Cheers Otto > > Hi Rooters! > > I have a little problem using root. > > I draw a graph several time changing the value of x and y (to do this > each time I use the command gr = new TGraph(ADC_SAMPLES,x,y);), also the > scale of y axis changes each time. > > When root draws the graph, it cancels the old one but not the scales; so > the scales overlap. > > I try to put the comand pad1->Clear(), but in this way the view of graph > flash. > > How could I solve this problem? > > Thanks > Silvia > Dr. Otto Schaile Sektion Physik, LMU Muenchen Phone: +49 89 289 14070 Am Coulombwall 1, D-85748 Garching, Germany GSM: +49 171 4312031 FAX: +49 89 289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET