> 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 You can try: http://root.cern.ch/root/htmldoc/TPolyLine3D.html and http://root.cern.ch/root/htmldoc/TPolyMarker3D.html with http://root.cern.ch/root/htmldoc/TAxis3D.html Just 2 cents though Valeri > > 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:04 MET