#include "ROOT/TColor.hxx"
#include "ROOT/TText.hxx"
#include "ROOT/TMarker.hxx"
void markerStyle() {
double num = 0.3;
double x = 0;
double dx = 1/16.0;
for (
Int_t i=1;i<16;i++) {
x += dx;
auto ot1 = canvas->Draw(Experimental::TText(pt1,
Form(
"%d", i)));
auto om1 = canvas->Draw(Experimental::TMarker(pm1));
om1->SetMarkerStyle(i);
om1->SetMarkerSize(2.5);
auto ot2 = canvas->Draw(Experimental::TText(pt2,
Form(
"%d", i+19)));
auto om2 = canvas->Draw(Experimental::TMarker(pm2));
om2->SetMarkerStyle(i+19);
om2->SetMarkerSize(2.5);
auto ot3 = canvas->Draw(Experimental::TText(pt3,
Form(
"%d", i+34)));
auto om3 = canvas->Draw(Experimental::TMarker(pm3));
om3->SetMarkerStyle(i+34);
om3->SetMarkerSize(2.5);
}
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 markerStyle.cxx.