Thanks. But I wanted 2 dimensional curve on 2 dimensional plot. A simplified example: TH2F *2D = new TH2F(rname,"",40,80.,150.,500,0.,500.); 2D->Fill(w, count[w]); 2D->Draw("same");
This looks something like a gaussian dist. But only points.. I want to connect these points with line, or I only want to plot it as a line. The "surf" option converts it to a 3D picture..
Best regards,
Nevzat Guler
On Tue, 27 Nov 2007, Olivier Couet wrote:
> Hi,
>
> That's the option SURF.
>
> Cheers, O.Couet
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Nevzat Guler
> Sent: Tuesday, November 27, 2007 4:31 AM
> To: Root Group
> Subject: [ROOT] TH2F & drawing curve
>
>
> Hello,
> Is there a drawing option for 2D histogram (TH2F) that draws
> curve
> through data points? (like the option "C" in TH1F..)
> I could not find any such option in the list. Basically I can convert
> the
> histogram into a TGraph object but I am looking for an easy way out..
> Thanks for the helps..
>
> Nevzat Guler
>
>
>
Received on Tue Nov 27 2007 - 19:34:56 CET
This archive was generated by hypermail 2.2.0 : Tue Nov 27 2007 - 23:50:02 CET