This ROOT 7 example demonstrates how to create a ROOT 7 canvas (RCanvas), divide on sub-sub pads and draw histograms there.
{
for (
int n = 0;
n < 1000;
n++) {
}
auto canvas = RCanvas::Create("Sub-sub pads example");
auto subpads = canvas->Divide(2,2);
auto style = RStyle::Parse(
"frame {"
" gridX: true;"
" gridY: true;"
" ticksX: 2;"
" ticksY: 2;"
" x_labels_size: 0.05;"
" y_labels_size: 20;"
" y_labels_color: green;"
"}");
canvas->SetSize(1200, 600);
canvas->Show();
canvas->ClearOnClose(
style);
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
Objects used to configure the different axis types.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
- Date
- 2018-03-13
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Sergey Linev s.lin.nosp@m.ev@g.nosp@m.si.de
Definition in file subpads.cxx.