Draw a scatter plot for 4 variables, mapped to: x, y, marker colour and marker size.
TScatter is available since ROOT v.6.30. See the TScatter documentation
void gr006_scatter()
{
canvas->SetRightMargin(0.14);
for (
int i=0; i<
n; i++) {
}
scatter1->SetMarkerStyle(20);
scatter1->SetTitle("Scatter plot title;X title;Y title;Z title");
scatter1->GetXaxis()->SetRangeUser(20.,90.);
scatter1->GetYaxis()->SetRangeUser(55.,90.);
scatter1->GetZaxis()->SetRangeUser(10.,200.);
scatter1->Draw("A");
scatter2->SetMarkerStyle(21);
scatter2->Draw();
}
This is the base class for the ROOT Random number generators.
- Author
- Olivier Couet
Definition in file gr006_scatter.C.