This macro generates a small V7 TH1D, fills it and draw it in a V7 canvas.
The canvas is display in the web browser
#include "ROOT/RPaveText.hxx"
void draw_pave()
{
auto canvas = RCanvas::Create("Canvas Title");
auto pave = canvas->Draw<
RPave>();
pave->SetCornerY(-0.03_normal);
pave->SetHeight(0.2_normal);
text->AddLine(
"This is RTextPave");
text->AddLine(
"It can have several lines");
text->AddLine(
"It should be positioned below RPave");
text->SetCornerY(0.25_normal);
text->SetHeight(0.3_normal);
canvas->SetSize(1000, 700);
canvas->Show();
}
#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.
- Date
- 2015-03-22
- Warning
- This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
- Author
- Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Definition in file draw_pave.cxx.