25 auto canvas = RCanvas::Create(
"RAxis examples");
30 draw0->axis.ticks.SetInvert();
32 draw0->axis.title =
"vertical";
35 draw1->axis.title =
"horizontal";
36 draw1->axis.title.SetCenter();
39 draw2->axis.ticks.SetBoth();
41 draw2->axis.title =
"both side ticks";
42 draw2->axis.title.SetCenter();
45 draw3->axis.title =
"center labels";
46 draw3->axis.labels.center =
true;
51 draw4->axis.SetTimeDisplay(
"%d/%m/%y %H:%M");
52 draw4->axis.title =
"time display";
53 draw4->axis.labels.size = 0.01;
54 draw4->axis.labels.color = RColor::kRed;
56 std::vector<std::string> labels = {
"first",
"second",
"third",
"forth",
"fifth"};
58 draw5->SetLabels(labels);
59 draw5->axis.ticks.SetInvert();
60 draw5->axis.title =
"labels, swap ticks side";
61 draw5->axis.title.SetLeft();
66 draw6->axis.ending.SetArrow();
67 draw6->axis.title =
"vertical negative length";
71 draw7->axis.max = 100;
73 draw7->axis.title =
"log10 scale";
74 draw7->axis.title.SetCenter();
75 draw7->axis.title.font = RAttrFont::kVerdana;
76 draw7->axis.title.color = RColor::kGreen;
77 draw7->axis.ending.SetCircle();
80 draw8->axis.min = 0.125;
81 draw8->axis.max = 128;
83 draw8->axis.title =
"log2 scale";
84 draw8->axis.title.SetCenter();
88 draw9->axis.max = 100;
89 draw9->axis.log = 2.7182;
90 draw9->axis.title =
"ln scale";
91 draw9->axis.title.SetCenter();
94 draw10->axis.ending.SetArrow();
95 draw10->axis.title =
"horizontal negative length";
96 draw10->axis.title.SetCenter();
99 draw11->axis.ending.SetArrow();
100 draw11->axis.reverse =
true;
101 draw11->axis.title =
"horizontal reverse";
102 draw11->axis.title.SetCenter();
105 draw12->axis.ending.SetArrow();
107 draw12->axis.ticks.SetBoth();
108 draw12->axis.ticks.color = RColor::kBlue;
110 draw12->axis.title =
"vertical axis with arrow";
111 draw12->axis.title.SetCenter();
113 canvas->SetSize(1000, 800);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
A position (horizontal and vertical) in a RPad.
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.