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) {
59 ::Error(
"flower",
"failed to create custom colors");
66 ::Error(
"flower",
"This macro requires OS X version of ROOT with cocoa enabled");
78 new TColor(indices[0], 0., 0., 0.5,
"custom_blue", 0.7);
79 gr1->SetFillColor(indices[0]);
80 gr1->SetName(
"part1");
81 gr1->SetTitle(
"part1");
85 new TColor(indices[1], 0.5, 0., 0.5,
"custom_purple", 0.5);
86 gr2->SetFillColor(indices[1]);
87 gr2->SetName(
"part2");
88 gr2->SetTitle(
"part2");
94 new TColor(indices[2], 1., 0., 0.4,
"custom_magenta", 0.2);
95 gr3->SetFillColor(indices[2]);
96 gr3->SetName(
"part3");
97 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.