#include "ROOT/RColor.hxx"
#include "ROOT/RText.hxx"
#include "ROOT/RLine.hxx"
#include <string>
void lineStyle() {
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->SetTextSize(13);
optts->SetTextAlign(32);
optts->SetTextFont(52);
RPadPos pl1(.32_normal, RPadLength::Normal(num));
RPadPos pl2(.8_normal , RPadLength::Normal(num));
auto optls = canvas->Draw(RLine(pl1, pl2));
optls->SetLineStyle(i);
}
canvas->Show();
}
- 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 lineStyle.cxx.