23#include "ROOT/RPaveText.hxx"
34 auto canvas = RCanvas::Create(
"Canvas Title");
37 auto pave = canvas->Draw<
RPave>();
40 pave->SetCornerY(-0.03_normal);
41 pave->SetHeight(0.2_normal);
43 auto text = canvas->
Draw<RPaveText>();
44 text->AddLine(
"This is RTextPave");
45 text->AddLine(
"It can have several lines");
46 text->AddLine(
"It should be positioned below RPave");
48 text->SetCornerY(0.25_normal);
49 text->SetHeight(0.3_normal);
51 canvas->SetSize(1000, 700);
#define R__LOAD_LIBRARY(LIBRARY)
RAttrFill & SetColor(const RColor &color)
The fill color.
Base class for paves with text, statistic, legends, placed relative to RFrame position and adjustable...
virtual void Draw(Option_t *option="")
Default Draw method for all objects.