Re: [ROOT] Ploting points (x,y,z) as a graph (NOT histogram)

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Fri Oct 19 2001 - 19:18:08 MEST


Hi Rene, 

On Thu, 18 Oct 2001 13:00:04 +0000
Rene Brun <Rene.Brun@cern.ch> wrote
concerning "Re: [ROOT] Ploting points (x,y,z) as a graph (NOT histogram)":
> You may get some inspiration from $ROOTSYS/tutorials/FirstContour.C
> Also look at the section "The CONTour options" in THistpainter::Paint at
> 
> http://root.cern.ch/root/htmldoc/THistPainter.html#THistPainter:Paint
> 
> By default, the system computes equally distant contours, but you can use
> TH2::SetContour to specify your own contour level(s)

This is all well and fine if what you want is contours, since you can
just do repeated TGCut objects.  However, that only gives the outline
of the contours.  What I really want is to be able to make graphs of
surfaces, in the style of what you get when doing 

  root [0] TF2 f("f", "sin(x + y)", 0, 2, 0, 2)
  root [1] f.Draw("SURF")

only that I want to be able to specify the grid points (not
nessecarily equidistant) my self.  That is, a way to draw tuples
(x,y,z) so that neighbouring points are connected with a line
(possibly spline interpolated).  In a way, it's connecting the contour
lines with lines, but then it should be plotted in 3D instead of 2D. I
imagine it's not such an easy thing to do, but it would be nice. 

Yours, 

Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th.           Phone:  (+45) 35 35 96 91 
         DK-2200 Copenhagen N                Cell:   (+45) 28 82 16 23
         Denmark                             Office: (+45) 353  25 305 
Email:   cholm@nbi.dk                        Web:    www.nbi.dk/~cholm



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET