Logo ROOT   6.18/05
Reference Guide
lineWidth.cxx File Reference

Detailed Description

#include "ROOT/RCanvas.hxx"
#include "ROOT/RColor.hxx"
#include "ROOT/RText.hxx"
#include "ROOT/RLine.hxx"
#include "ROOT/RPadPos.hxx"
#include <string>
void lineWidth() {
using namespace ROOT::Experimental;
auto canvas = RCanvas::Create("Canvas Title");
double num = 0.3;
for (int i=10; i>0; i--){
num = num + 0.05;
RPadPos pt(.3_normal, RPadLength::Normal(num));
auto optts = canvas->Draw(RText(pt, std::to_string(i)));
optts->SetSize(13).SetAlign(32).SetFont(52);
RPadPos pl1(.32_normal, RPadLength::Normal(num));
RPadPos pl2(.8_normal , RPadLength::Normal(num));
auto optls = canvas->Draw(RLine(pl1, pl2));
optls->SetWidth(i);
}
canvas->Show();
}
A text.
TPaveText * pt
Date
2018-03-18
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
Author
Iliana Betsou

Definition in file lineWidth.cxx.