29 ::Error(
"grad2",
"can not allocate new custom colors");
38 TCanvas *
const cnv =
new TCanvas(
"gradient demo 2",
"gradient demo 2", 100, 100, 800, 600);
41 ::Error(
"grad2",
"This macro works only on OS X with --enable-cocoa");
64 gradFill1->SetStartEnd(Point(0., 0.), Point(0., 1.));
74 gradFill2->SetStartEnd(Point(0., 0), Point(0., 1.));
76 TH1F *
const hist =
new TH1F(
"a2",
"b2", 10, -2., 3.);
79 hist2->FillRandom(
"gaus", 100000);
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.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
The color creation and management class.
1-D histogram with a float per channel (see TH1 documentation)
virtual void FillRandom(TF1 *f1, Int_t ntimes=5000, TRandom *rng=nullptr)
void Draw(Option_t *option="") override
Draw this histogram with options.
unsigned FindFreeCustomColorIndices(Color_t(&indices)[N])