Example of canvas partitioning with ratios The TPad::DivideRatios method enables partitioning of the canvas according to different
for (
int i =1; i<=
n; i++) {
}
}
void canvas3() {
auto C1 =
new TCanvas(
"C1",
"C1", 400, 400);
C1->DivideRatios(2, 2, {.2,.8}, {.4,.6}); colorpads(C1,4);
auto C2 =
new TCanvas(
"C2",
"C2", 400, 0, 400, 400);
C2->DivideRatios(2, 3, {.2,.8}); colorpads(C2,6);
auto C3 =
new TCanvas(
"C3",
"C3", 0, 455, 400, 400);
C3->DivideRatios(2, 2); colorpads(C3,4);
auto C4 =
new TCanvas(
"C4",
"C4", 400, 455, 400, 400);
C4->DivideRatios(2, 2, {.2,.7}, {.4,.5}, 0.05, 0.01); colorpads(C4,4);
}
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
The most important graphics class in the ROOT system.
void Update() override
Update pad.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
- Author
- Olivier Couet
Definition in file canvas3.C.