#include "ROOT/TColor.hxx"
#include "ROOT/TText.hxx"
#include "ROOT/TLine.hxx"
void lineWidth() {
double num = 0.3;
for (int i=10; i>0; i--){
num = num + 0.02;
auto optts = canvas->Draw(Experimental::TText(pt,
Form(
"%d", i)));
optts->SetTextSize(13);
optts->SetTextAlign(32);
optts->SetTextFont(52);
auto optls = canvas->Draw(Experimental::TLine(pl1, pl2));
optls->SetLineWidth(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 lineWidth.cxx.