29 Double_t per_cut = (val_cut-min)/(max-min);
33 const Int_t Number = 4;
34 Double_t Red[Number] = { 0.11, 0.19 , 0.30, 0.89};
35 Double_t Green[Number] = { 0.03, 0.304, 0.60, 0.91};
36 Double_t Blue[Number] = { 0.18, 0.827, 0.50, 0.70};
37 Double_t Stops[Number] = { 0., per_cut, per_cut+eps, 1. };
48void perceptualcolormap() {
49 TH2D *
h =
new TH2D(
"h",
"Perceptual Colormap",200,-4,4,200,-4,4);
53 for (
Int_t i=0;i<1000000;i++) {
55 h->Fill(
a-1.5,
b-1.5,0.1);
56 h->Fill(
a+2.,
b-3.,0.07);
57 h->Fill(
a-3.,
b+3.,0.05);
59 h->Fill(
a+1.5,
b+1.5,-0.08);
61 Perceptual_Colormap(
h, 0.);
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.
__device__ AFloat max(AFloat x, AFloat y)