A 3D plot from a TNtuple

I am drawing a 3D plot with a TNtuple, more or less as shown below.
How do I control the size and color of the markers, the axes, etc.?
Thanks

Luciano
		TNtuple *n = new TNtuple("n", "n", "x:y:t");
			for (Int_t i = 0; i < nGraph1; i++) {
				n->Fill(xg1[i], yg1[i], tg1[i]);
			}
			n->Draw("t:x:y");
		

Search for “>>” in the TTree::Draw method description and in the ROOT User’s Guide -> Trees -> Simple Analysis Using TTree::Draw -> Filling a Histogram.

root [0] ntuple->SetMarkerStyle(20)
root [1] ntuple->SetMarkerSize(0.5)
root [2] ntuple->SetMarkerColor(kRed)
root [3] ntuple->Draw("px:py:pz")

I tried to change the size of the marker.
No effect! 0.1 or 10. makes no difference
```
TNtuple *n = new TNtuple(“n”, “n”, “x:y:t”);

		for (Int_t i = 0; i < nGraph1; i++) {
			n->Fill(xg1[i], yg1[i], tg1[i]);
		}
		
		n->SetMarkerSize(10.);
		n->Draw("t:x:y");
		```

I tried

ntuple->SetMarkerSize(10.);

and it had no effect.

My fault! Sorry!
This works:

	
			TNtuple *n = new TNtuple("n", "n", "x:y:t");
			
			for (Int_t i = 0; i < nGraph1; i++) {
				n->Fill(xg1[i], yg1[i], tg1[i]);
			}
			n->SetMarkerStyle(20);
			n->SetMarkerSize(0.3);
			n->Draw("t:x:y");

Thanks for the help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.