Draw a 2D scatter plot.
{
auto canvas =
new TCanvas(
"canvas",
"canvas");
canvas->SetRightMargin(0.14);
for (
int i=0; i<
n; i++) {
c1[i] = 10000*
r->Rndm(i);
s1[i] = 10000*
r->Rndm(i);
}
scatter1->SetTitle(
"Scatter plot title;X title;Y title;Z title");
canvas->SetLogx();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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 TScatter2D is able to draw five variables scatter plot on a single plot.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=nullptr, Float_t alpha=1.)
See TColor::SetPalette.
- Author
- Olivier Couet
Definition in file gr019_scatter2d.C.