15 canvas->SetRightMargin(0.14);
30 for (
int i=0; i<
n; i++) {
31 x1[i] = 100*
r->Rndm(i);
32 y1[i] = 200*
r->Rndm(i);
33 c1[i] = 300*
r->Rndm(i);
34 s1[i] = 400*
r->Rndm(i);
35 x2[i] = 100*
r->Rndm(i);
36 y2[i] = 200*
r->Rndm(i);
37 c2[i] = 100*
r->Rndm(i);
38 s2[i] = 200*
r->Rndm(i);
43 scatter1->SetTitle(
"Scatter plot title;X title;Y title;Z title");
44 scatter1->GetXaxis()->SetRangeUser(20.,90.);
45 scatter1->GetYaxis()->SetRangeUser(55.,90.);
46 scatter1->GetZaxis()->SetRangeUser(10.,200.);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TStyle * gStyle
This is the base class for the ROOT Random number generators.
A TScatter is able to draw four variables scatter plot on a single plot.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.