Hi Christian,
On Sat, 19 May 2001 cstrato@EUnet.at wrote:
>
> Dear Rooters
>
> I have some questions regarding graphs:
>
> 1, When I draw a 2-dim graph, I would like to set the axis range for
> both x- and y-axis. However, I am only able to set the range for y:
> TCanvas *vC1 = new TCanvas("vC1","Graph example",200,10,700,700);
> TGraph *vGraph = new TGraph(num,x,y);
> vGraph->SetMinimum(2);
> vGraph->SetMaximum(7);
> Do you know, how I can set the range for the x-axis?
Simply set the pad range, eg via gPad->DrawFrame.
See example in $ROOTSYS/tutorials/gerrors2.C
>
> 2, What does function Smooth do?
> The following seems to have no effect:
> vGraph->Smooth(num,x,y,2); //num > 10000
> vGraph->Draw("AP");
> How do I use Smooth?
> What does the parameter "drawtype" do?
This function draws a smooth line through a set of N points.
Depending on the drawtype, a smooth fill area can also be drawn.
This function is not supposed to be called. It was protected
in earlier versions. I had requests to make it public.
This function should be modified to not do any graphics
and return the set of smoothed values.
I have no time to make this change now.
Rene Brun
>
> Thank you in advance for your help.
> My system: PowerBook LinuxPPC 2000, root 3.01/02
>
> Best regards
> Christian
> ----------------------------------
> C.h.r.i.s.t.i.a.n S.t.r.a.t.o.w.a
> V.i.e.n.n.a, A.u.s.t.r.i.a
>
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:46 MET