29typedef vector_type::size_type size_type;
34 assert(
nPoints > 100 &&
"create_flower, number of points is too small");
41 for (size_type i = 0; i <=
nPoints; ++i) {
60 ::Error(
"flower",
"failed to create custom colors");
67 ::Error(
"flower",
"This macro requires OS X version of ROOT with cocoa enabled");
79 new TColor(indices[0], 0., 0., 0.5,
"custom_blue", 0.7);
80 gr1->SetFillColor(indices[0]);
81 gr1->SetName(
"part1");
82 gr1->SetTitle(
"part1");
86 new TColor(indices[1], 0.5, 0., 0.5,
"custom_purple", 0.5);
87 gr2->SetFillColor(indices[1]);
88 gr2->SetName(
"part2");
89 gr2->SetTitle(
"part2");
95 new TColor(indices[2], 1., 0., 0.4,
"custom_magenta", 0.2);
96 gr3->SetFillColor(indices[2]);
97 gr3->SetName(
"part3");
98 gr3->SetTitle(
"part3");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint angle
The color creation and management class.
A TGraph is an object made of two arrays X and Y with npoints each.
A TMultiGraph is a collection of TGraph (or derived) objects.
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.