12 #include "ROOT/TColor.hxx" 13 #include "ROOT/TText.hxx" 14 #include "ROOT/TMarker.hxx" 26 for (
Int_t i=1;i<16;i++) {
30 auto ot1 = canvas->Draw(Experimental::TText(pt1,
Form(
"%d", i)));
32 auto om1 = canvas->Draw(Experimental::TMarker(pm1));
33 om1->SetMarkerStyle(i);
34 om1->SetMarkerSize(2.5);
37 auto ot2 = canvas->Draw(Experimental::TText(pt2,
Form(
"%d", i+19)));
39 auto om2 = canvas->Draw(Experimental::TMarker(pm2));
40 om2->SetMarkerStyle(i+19);
41 om2->SetMarkerSize(2.5);
44 auto ot3 = canvas->Draw(Experimental::TText(pt3,
Form(
"%d", i+34)));
46 auto om3 = canvas->Draw(Experimental::TMarker(pm3));
47 om3->SetMarkerStyle(i+34);
48 om3->SetMarkerSize(2.5);
A normalized coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the TPad...
Namespace for new ROOT classes and functions.
A position (horizontal and vertical) in a TPad.
char * Form(const char *fmt,...)
static std::shared_ptr< TCanvas > Create(const std::string &title)