12#include "ROOT/RText.hxx"
13#include "ROOT/RMarker.hxx"
20 auto canvas = RCanvas::Create(
"Canvas Title");
25 for (
Int_t i=1;i<16;i++) {
29 auto ot1 = canvas->Draw(
RText(pt1, std::to_string(i)));
31 auto om1 = canvas->Draw(
RMarker(pm1));
32 om1->SetStyle(i).SetSize(2.5);
35 auto ot2 = canvas->Draw(
RText(pt2, std::to_string(i+19)));
37 auto om2 = canvas->Draw(
RMarker(pm2));
38 om2->SetStyle(i+19).SetSize(2.5);
41 auto ot3 = canvas->Draw(
RText(pt3, std::to_string(i+34)));
43 auto om3 = canvas->Draw(
RMarker(pm3));
44 om3->SetStyle(i+34).SetSize(2.5);
A normalized coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the RPad.
A position (horizontal and vertical) in a RPad.