Hi Florian,
An example
Rene Brun
void g3d() {
Int_t i;
const Int_t N = 5000;
Float_t x,y,z;
TNtuple T("T","3-d tests","x:y:z");
TRandom r;
for (i=0;i<N;i++) {
x = r.Gaus(0,1);
y = r.Gaus(0,1);
z = TMath::Sqrt(x*x+y*y);
T.Fill(x,y,z);
}
TCanvas *c1 = new TCanvas("c1","test",10,10,1100,900);
c1->Divide(2,2);
c1->cd(1);
T.Draw("z:y:x");
c1->cd(2);
TH3F *h3 = new TH3F("h3","test 3-d",15,-3,3,15,-3,3,25,0,5);
h3->SetMarkerColor(kRed);
h3->SetFillColor(kBlue);
T.Draw("z:y:x>>h3","","scat");
c1->cd(3);
T.Draw("z:y:x>>h3","","box"); //best with with x3d
c1->cd(4);
T.Draw("z:y:x>>h3","","iso"); //you need the CVS version for this one
}
On Mon, 10 Jun 2002, Florian Schopper wrote:
>
> Dear Rooters,
>
> I want to display measurement data from linewidth measurements on a
> silicon wafer. This data is not regularly spaced, but I have (x,y,value).
> Which class would you recommend for that purpose ? Is there a Graph3D ?
>
> cheers
> Florian Schopper
>
>
> ----------------------------------------------------------------------
> Florian Schopper office: MPI Halbleiterlabor
>
> Ludwig-Merk str. 3 Otto-Hahn-Ring 6 , Gebäude 72
> D-80805 München D-81739 München
> Germany Germany
>
> phone: 49/89/32455680 phone HLL: 49/89/839400-33
>
> e-mail: fls@hll.mpg.de
> http://www.gamma.mpe-garching.mpg.de/MEGA/mega.html
> ----------------------------------------------------------------------
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:56 MET