35 if ( ipal >= fixedPals().
size() )
return nullptr;
36 if ( fixedPals()[ipal] !=
nullptr )
return fixedPals()[ipal];
40 }
else if ( ipal < 1000 ) {
41 if ( fixedPals()[ipal] ==
nullptr ) {
44 }
else if ( (ipal >= 1010 && ipal < 1020) ||
45 (ipal >= 2010 && ipal < 2020) ) {
46 TStyle* pstyleSave = gStyle;
47 gStyle =
dynamic_cast<TStyle*
>(gStyle->Clone(
"TmpStyle"));
48 TStyle* pstyleTmp = gStyle;
49 const double alpha = 1.0;
52 Double_t
stops[nRGBs] = { 0.00, 0.30, 0.44, 0.70, 1.00};
53 Double_t red[nRGBs] = { 1.00, 1.00, 1.00, 0.70, 0.00};
54 Double_t green[nRGBs] = { 1.00, 0.75, 0.55, 0.20, 0.00};
55 Double_t blue[nRGBs] = { 1.00, 0.00, 0.00, 0.10, 0.00};
66 TColor::CreateGradientColorTable(nRGBs, stops, red, green, blue, ncol, alpha);
68 vector<unsigned int> ncfxs = {0, 1, 2, 4, 6, 8, 10, 20, 30, 40};
69 int ipal0 = ipal < 2000 ? 1010 : 2010;
71 fixedPals()[ipal] = ppal;
74 }
else if ( (ipal >= 1020 && ipal < 1030) ||
75 (ipal >= 2020 && ipal < 2030) ) {
76 TStyle* pstyleSave = gStyle;
77 gStyle =
dynamic_cast<TStyle*
>(gStyle->Clone(
"TmpStyle"));
78 TStyle* pstyleTmp = gStyle;
79 const double alpha = 1.0;
82 Double_t stops[nRGBs] = { 0.00, 0.50, 0.50, 0.65, 0.72, 0.85, 1.00};
83 Double_t red[nRGBs] = { 0.09, 0.90, 1.00, 1.00, 1.00, 0.70, 0.00};
84 Double_t green[nRGBs] = { 0.60, 0.95, 1.00, 0.75, 0.55, 0.20, 0.00};
85 Double_t blue[nRGBs] = { 0.48, 1.00, 1.00, 0.00, 0.00, 0.10, 0.00};
104 TColor::CreateGradientColorTable(nRGBs, stops, red, green, blue, ncol, alpha);
106 vector<unsigned int> ncfxs = {0, 1, 2, 4, 6, 8, 10, 20, 30, 40};
107 int ipal0 = ipal < 2000 ? 1020 : 2020;
109 fixedPals()[ipal] = ppal;
113 return fixedPals()[ipal];
static const RootPalette * defaultPalette()
unsigned int ncol() const
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
void setCentralColors(unsigned int ncol, unsigned int icol=0)
void setFirstColors(unsigned int ncol, unsigned int icol=0)