void TH3BOX() { //=========Macro generated from canvas: c16/c16 //========= (Tue Apr 21 13:02:14 2020) by ROOT version 6.14/04 gStyle->SetCanvasPreferGL(kTRUE); TCanvas *c16 = new TCanvas("c16", "c16",67,55,1299,713); gStyle->SetOptStat(0); c16->SetHighLightColor(2); c16->Range(-0.9858439,-1.117922,0.9858439,1.117922); TView *view1 = TView::CreateView(1); view1->SetRange(0,0,0,10,10,3); c16->SetFillColor(0); c16->SetBorderMode(0); c16->SetBorderSize(2); c16->SetFrameBorderMode(0); TH3I *Empty__1 = new TH3I("Empty__1","Empty",10,0,10,10,0,10,10,0,3); Empty__1->SetBinContent(157,1); Empty__1->SetBinContent(158,1); Empty__1->SetBinContent(159,1); Empty__1->SetBinContent(160,1); Empty__1->SetBinContent(161,1); Empty__1->SetBinContent(162,1); Empty__1->SetBinContent(163,1); Empty__1->SetBinContent(164,1); Empty__1->SetBinContent(165,1); Empty__1->SetBinContent(166,1); Empty__1->SetBinContent(169,1); Empty__1->SetBinContent(170,1); Empty__1->SetBinContent(171,1); Empty__1->SetBinContent(172,1); Empty__1->SetBinContent(173,1); Empty__1->SetBinContent(174,1); Empty__1->SetBinContent(175,1); Empty__1->SetBinContent(176,1); Empty__1->SetBinContent(177,1); Empty__1->SetBinContent(178,1); Empty__1->SetBinContent(181,1); Empty__1->SetBinContent(182,1); Empty__1->SetBinContent(183,1); Empty__1->SetBinContent(184,1); Empty__1->SetBinContent(185,1); Empty__1->SetBinContent(186,1); Empty__1->SetBinContent(187,1); Empty__1->SetBinContent(188,1); Empty__1->SetBinContent(189,1); Empty__1->SetBinContent(190,1); Empty__1->SetBinContent(193,1); Empty__1->SetBinContent(194,1); Empty__1->SetBinContent(195,1); Empty__1->SetBinContent(196,1); Empty__1->SetBinContent(197,1); Empty__1->SetBinContent(198,1); Empty__1->SetBinContent(199,1); Empty__1->SetBinContent(200,1); Empty__1->SetBinContent(201,1); Empty__1->SetBinContent(202,1); Empty__1->SetBinContent(205,1); Empty__1->SetBinContent(206,1); Empty__1->SetBinContent(207,1); Empty__1->SetBinContent(208,1); Empty__1->SetBinContent(209,1); Empty__1->SetBinContent(210,1); Empty__1->SetBinContent(211,1); Empty__1->SetBinContent(212,1); Empty__1->SetBinContent(213,1); Empty__1->SetBinContent(214,1); Empty__1->SetBinContent(217,1); Empty__1->SetBinContent(218,1); Empty__1->SetBinContent(219,1); Empty__1->SetBinContent(220,1); Empty__1->SetBinContent(221,1); Empty__1->SetBinContent(222,1); Empty__1->SetBinContent(223,1); Empty__1->SetBinContent(224,1); Empty__1->SetBinContent(225,1); Empty__1->SetBinContent(226,1); Empty__1->SetBinContent(229,1); Empty__1->SetBinContent(230,1); Empty__1->SetBinContent(231,1); Empty__1->SetBinContent(232,1); Empty__1->SetBinContent(233,1); Empty__1->SetBinContent(234,1); Empty__1->SetBinContent(235,1); Empty__1->SetBinContent(236,1); Empty__1->SetBinContent(237,1); Empty__1->SetBinContent(238,1); Empty__1->SetBinContent(241,1); Empty__1->SetBinContent(242,1); Empty__1->SetBinContent(243,1); Empty__1->SetBinContent(244,1); Empty__1->SetBinContent(245,1); Empty__1->SetBinContent(246,1); Empty__1->SetBinContent(247,1); Empty__1->SetBinContent(248,1); Empty__1->SetBinContent(249,1); Empty__1->SetBinContent(250,1); Empty__1->SetBinContent(253,1); Empty__1->SetBinContent(254,1); Empty__1->SetBinContent(255,1); Empty__1->SetBinContent(256,1); Empty__1->SetBinContent(257,1); Empty__1->SetBinContent(258,1); Empty__1->SetBinContent(259,1); Empty__1->SetBinContent(260,1); Empty__1->SetBinContent(261,1); Empty__1->SetBinContent(262,1); Empty__1->SetBinContent(265,1); Empty__1->SetBinContent(266,1); Empty__1->SetBinContent(267,1); Empty__1->SetBinContent(268,1); Empty__1->SetBinContent(269,1); Empty__1->SetBinContent(270,1); Empty__1->SetBinContent(271,1); Empty__1->SetBinContent(272,1); Empty__1->SetBinContent(273,1); Empty__1->SetBinContent(274,1); Empty__1->SetEntries(100); Empty__1->SetStats(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#000099"); Empty__1->SetLineColor(ci); Empty__1->GetXaxis()->SetLabelFont(42); Empty__1->GetXaxis()->SetLabelSize(0.035); Empty__1->GetXaxis()->SetTitleSize(0.035); Empty__1->GetXaxis()->SetTitleFont(42); Empty__1->GetYaxis()->SetLabelFont(42); Empty__1->GetYaxis()->SetLabelSize(0.035); Empty__1->GetYaxis()->SetTitleSize(0.035); Empty__1->GetYaxis()->SetTitleOffset(0); Empty__1->GetYaxis()->SetTitleFont(42); Empty__1->GetZaxis()->SetLabelFont(42); Empty__1->GetZaxis()->SetLabelSize(0.035); Empty__1->GetZaxis()->SetTitleSize(0.035); Empty__1->GetZaxis()->SetTitleFont(42); Empty__1->Draw("BOX2"); TExec *exec = new TExec("ex2","gStyle->SetPalette(1);"); exec->Draw(); TH3I *h__2 = new TH3I("h__2","Filled",10,0,10,10,0,10,10,0,3); h__2->SetBinContent(158,1+30); h__2->SetBinContent(160,1+30); h__2->SetBinContent(161,1+30); h__2->SetBinContent(162,1+30); h__2->SetBinContent(164,1+30); h__2->SetBinContent(169,1+30); h__2->SetBinContent(171,1+30); h__2->SetBinContent(172,1+30); h__2->SetBinContent(174,2+30); h__2->SetBinContent(175,2+30); h__2->SetBinContent(177,1+30); h__2->SetBinContent(178,1+30); h__2->SetBinContent(183,2+30); h__2->SetBinContent(193,2+30); h__2->SetBinContent(195,1+30); h__2->SetBinContent(197,1+30); h__2->SetBinContent(200,1+30); h__2->SetBinContent(202,1+30); h__2->SetBinContent(205,1+30); h__2->SetBinContent(206,2+30); h__2->SetBinContent(207,2+30); h__2->SetBinContent(209,1+30); h__2->SetBinContent(211,2+30); h__2->SetBinContent(218,2+30); h__2->SetBinContent(220,1+30); h__2->SetBinContent(221,1+30); h__2->SetBinContent(223,1+30); h__2->SetBinContent(229,1+30); h__2->SetBinContent(232,1+30); h__2->SetBinContent(235,1+30); h__2->SetBinContent(236,3+30); h__2->SetBinContent(245,1+30); h__2->SetBinContent(246,1+30); h__2->SetBinContent(250,1+30); h__2->SetBinContent(255,1+30); h__2->SetBinContent(256,1+30); h__2->SetBinContent(258,1+30); h__2->SetBinContent(260,1+30); h__2->SetBinContent(266,1+30); h__2->SetBinContent(267,1+30); h__2->SetEntries(50); h__2->SetStats(0); h__2->SetContour(20); h__2->SetContourLevel(0,0); h__2->SetContourLevel(1,0.15); h__2->SetContourLevel(2,0.3); h__2->SetContourLevel(3,0.45); h__2->SetContourLevel(4,0.6); h__2->SetContourLevel(5,0.75); h__2->SetContourLevel(6,0.9); h__2->SetContourLevel(7,1.05); h__2->SetContourLevel(8,1.2); h__2->SetContourLevel(9,1.35); h__2->SetContourLevel(10,1.5); h__2->SetContourLevel(11,1.65); h__2->SetContourLevel(12,1.8); h__2->SetContourLevel(13,1.95); h__2->SetContourLevel(14,2.1); h__2->SetContourLevel(15,2.25); h__2->SetContourLevel(16,2.4); h__2->SetContourLevel(17,2.55); h__2->SetContourLevel(18,2.7); h__2->SetContourLevel(19,2.85); TPaletteAxis *palette = new TPaletteAxis(0.7985336,-0.8943376,0.8872595,0.8943376,h__2); palette->SetLabelColor(1); palette->SetLabelFont(42); palette->SetLabelOffset(0.005); palette->SetLabelSize(0.035); palette->SetTitleOffset(1); palette->SetTitleSize(0.035); ci = TColor::GetColor("#ff0000"); palette->SetFillColor(ci); palette->SetFillStyle(1001); h__2->GetListOfFunctions()->Add(palette,"br"); ci = TColor::GetColor("#000099"); h__2->SetLineColor(ci); h__2->GetXaxis()->SetLabelFont(42); h__2->GetXaxis()->SetLabelSize(0.035); h__2->GetXaxis()->SetTitleSize(0.035); h__2->GetXaxis()->SetTitleFont(42); h__2->GetYaxis()->SetLabelFont(42); h__2->GetYaxis()->SetLabelSize(0.035); h__2->GetYaxis()->SetTitleSize(0.035); h__2->GetYaxis()->SetTitleOffset(0); h__2->GetYaxis()->SetTitleFont(42); h__2->GetZaxis()->SetLabelFont(42); h__2->GetZaxis()->SetLabelSize(0.035); h__2->GetZaxis()->SetTitleSize(0.035); h__2->GetZaxis()->SetTitleFont(42); h__2->Draw("BOX2Z SAME"); exec = new TExec("ex1","gStyle->SetPalette(0);"); exec->Draw(); TPaveText *pt = new TPaveText(0.441505,0.9342,0.558495,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *pt_LaTex = pt->AddText("Empty"); pt->Draw(); c16->Modified(); c16->cd(); c16->SetSelected(c16); }