18 auto c =
new TCanvas(
"",
"",0,0,1100,550);
22 auto h1 =
new TH2D(
"h1",
"h1",40,-4,4,40,-20,20);
23 auto h2 =
new TH2D(
"h2",
"h2",40,-4,4,40,-20,20);
25 for (
int i = 0;
i < 25000;
i++) {
35 h1->GetListOfFunctions()->Add(palette1);
39 h2->GetListOfFunctions()->Add(palette2);
41 p1->
cd();
h1->Draw(
"colz");
42 p2->
cd();
h2->Draw(
"colz");
R__EXTERN TRandom * gRandom
R__EXTERN TStyle * gStyle
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
2-D histogram with a double per channel (see TH1 documentation)
The most important graphics class in the ROOT system.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
The palette painting class.