24#include "ROOT/RFrameTitle.hxx"
38 for (
int n=0;
n<1000;
n++)
41 for (
int n=0;
n<3000;
n++)
45 auto canvas = RCanvas::Create(
"RH1 with two Y scales");
48 auto col1 = RColor::kRed,
col2 = RColor::kBlue;
51 canvas->Draw<
RFrameTitle>(
"Two independent Y axes for histograms");
54 draw1->line.width = 2;
56 draw2->secondy =
true;
58 draw2->line.width = 4;
60 canvas->GetFrame()->y.ticks.color =
col1;
61 canvas->GetFrame()->y2.ticks.color =
col2;
63 canvas->SetSize(800, 600);
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...