Re: [ROOT] plot 3D function

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Mon Oct 06 2003 - 17:03:13 MEST


Hi,

 Have you tried something like this:

{
   TF3 *fun3 = new TF3("fun3","x*x+y*y+z*z-3",-2,2,-2,2,-2,2);
   fun3->Draw();
}

OC

On Mon, 6 Oct 2003, Claus Horn wrote:

> Dear Rooters,
> 
> from a scan in parameter space I have a function z(x,y),
> which I would like to plott. (with z-values of 100-400)
> Actually I dont wont to use a histogram as I dont wont
> scattering. (Or can this be switched off ?)
> But TGraph does only work for y(x), or is there a posibility
> to have z(x,y) ?
> Anyway, if I tryed to use a TH3F histogram, but than the
> "surf" draw option which works for TH2F does not seam to work.
> Probably there is an easy way which I just dont see.
> I would very much apreceate any help.
> 
> Claus Horn
> 
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET