Hi Christian,
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)
Rene Brun
Christian Holm Christensen wrote:
>
> Hi,
>
> I'm wondering if there's a way to plot tuples of (x, y, z) data
> points (as markers, surfaces, contours, etc.) which is similar to
> TGraph? I couldn't find anything called TGraph2D, so I assume it
> doesn't exist. I _don't_ want to use TH2 since the data is not counts
> but rather tuples. What I'd like to do is something along the lines
> of
>
> TGraph2D* g = new TGraph2D(n);
>
> for (Int_t i = 0; i < n; i++) {
> Double_t x = ...
> Double_t y = ...
> Double_t z = ...
> g->SetPoint(i, x, y, z);
> }
>
> I know you can do something with TMultiGraph + TLegend (which is nice)
> but it does not produce surface plots, and further, if you have tuples
> (x,y,z,v), what I'd like was to plot
>
> d = f(x,y, z=z0)
> d = f(x,y, z=z1)
> d = f(x,y, z=z2)
>
> that is, d as a function of (x,y) at constant z, put them in the same
> TMultiGraph and plot it as (superimposed) wire plots.
>
> If I've overlooked something, I beg your pardon. Otherwise, I'd
> really like to see this in ROOT.
>
> 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