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");
couet
3
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!
system
Closed
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.