31 Double_t eps = (max - min) * 0.00001;
34 const Int_t Number = 4;
35 Double_t Red[Number] = {0.11, 0.19, 0.30, 0.89};
36 Double_t Green[Number] = {0.03, 0.304, 0.60, 0.91};
37 Double_t Blue[Number] = {0.18, 0.827, 0.50, 0.70};
51 TH2D *
h =
new TH2D(
"h",
"Perceptual Colormap", 200, -4, 4, 200, -4, 4);
55 for (
Int_t i = 0; i < 1000000; i++) {
57 h->Fill(
a - 1.5,
b - 1.5, 0.1);
58 h->Fill(
a + 2.,
b - 3., 0.07);
59 h->Fill(
a - 3.,
b + 3., 0.05);
61 h->Fill(
a + 1.5,
b + 1.5, -0.08);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
static Int_t CreateGradientColorTable(UInt_t Number, Double_t *Stops, Double_t *Red, Double_t *Green, Double_t *Blue, UInt_t NColors, Float_t alpha=1., Bool_t setPalette=kTRUE)
Static function creating a color table with several connected linear gradients.
2-D histogram with a double per channel (see TH1 documentation)
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.