38 new TCanvas(
"c1",
"c1",0,0,800,700);
41 nt =
new TNtuple(
"nt",
"Demo ntuple",
"x:y:z:u:v:w");
43 for (
Int_t i=0; i<20000; i++) {
44 r->
Sphere(s1x, s1y, s1z, 0.1);
45 r->
Sphere(s2x, s2y, s2z, 0.2);
46 r->
Sphere(s3x, s3y, s3z, 0.05);
52 nt->
Fill(s1x, s1y, s1z, s2x, s2y, s2z);
58 nt->
Fill(s2x-1, s2y-1, s2z, s1x+.5, s1y+.5, s1z+.5);
64 nt->
Fill(s1x+1, s1y+1, s1z+1, s3x-2, s3y-2, s3z-2);
69 nt->
Draw(
"x:y:z:u:v:w",
"",
"para",5000);
void para(Int_t iaxis=0, Int_t ndiv=8, Double_t start=0, Double_t step=0)
TParallelCoordSelect * GetCurrentSelection()
Return the selection currently being edited.
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
R__EXTERN TStyle * gStyle
A TParallelCoordRange is a range used for parallel coordinates plots.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
This is the base class for the ROOT Random number generators.
virtual void SetLineColor(Color_t lcolor)
void AddSelection(const char *title)
Add a selection.
A simple TTree restricted to a list of float variables only.
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual Int_t Fill()
[fNvar] Array of variables
void SetDotsSpacing(Int_t s=0)
Set dots spacing.
virtual void Sphere(Double_t &x, Double_t &y, Double_t &z, Double_t r)
Generates random vectors, uniformly distributed over the surface of a sphere of given radius...
Parallel Coordinates class.
void generate_random(Int_t i)
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
void AddRange(TParallelCoordRange *range)
Add a range to the current selection on the axis.