LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ColorScale.cxx
Go to the documentation of this file.
9 
10 #include <iostream>
11 #include <cmath>
12 
13 #include "TStyle.h"
14 #include "TColor.h"
15 
16 namespace evdb {
17  int ColorScale::Palette(const std::string& nm)
18  {
19  static const char* cs[] = {
20  "Rainbow", "InvRainbow", "LinGray", "ColdToHot",
21  "BlueToRed", "BlueToRedII", "HeatedObject","Reds",
22  "Greens", "Blues", "Geographic", "BlueToGreen",
23  "BlueToOrange","GreenToMagenta","Sequential", "Focus",
24  "Custom", 0
25  };
26  int i;
27  for (i=0; cs[i]!=0; ++i) {
28  if (nm==cs[i]) return i;
29  }
30  return 0;
31  }
32  int ColorScale::Scale(const std::string& nm)
33  {
34  static const char* cs[] = {
35  "linear", "log","sqrt", 0
36  };
37  int i;
38  for (i=0; cs[i]!=0; ++i) {
39  if (nm==cs[i]) return i;
40  }
41  return 0;
42  }
43 
57  ColorScale::ColorScale(double xlo, double xhi,
58  int which, int scale, int n,
59  double h1, double h2, double v1, double v2) :
60  fXlo(xlo),
61  fXhi(xhi),
62  fScale(scale),
63  fNcolor(n),
64  fUnderFlowColor(-1),
65  fOverFlowColor(-1)
66  {
67  if(fNcolor > 256) fNcolor = 256;
68 
69  switch(which) {
70  case kSequential: this->MakeSequential(); break;
71  case kFocus: this->MakeFocus(); break;
72  case kInvRainbow: this->MakeInvRainbow(); break;
73  case kGreenToMagenta: this->MakeGreenToMagenta(); break;
74  case kBlueToRed: this->MakeBlueToRed(); break;
75  case kBlueToRedII: this->MakeBlueToRedII(); break;
76  case kBlueToOrange: this->MakeBlueToOrange(); break;
77  case kGeographic: this->MakeBrownToBlue(); break;
78  case kLinGray: this->MakeLinGray(); break;
79  case kHeatedObject: this->MakeHeatedObject(); break;
80  case kColdToHot: this->MakeHSVScale(n, 150.0, 0.0, 0.2, 0.5); break;
81  case kReds: this->MakeHSVScale(n, 30.0, 0.0, 0.1, 0.9); break;
82  case kBlues: this->MakeHSVScale(n, 180.0, 270.0, 0.1, 0.9); break;
83  case kGreens: this->MakeHSVScale(n, 90.0, 120.0, 0.1, 0.9); break;
84  case kCustom: this->MakeHSVScale(n, h1, h2, v1, v2); break;
85  case kRainbow:
86  // Default to a rainbow.
87  default:
88  this->MakeRainbow();
89  break;
90  }
91  }
92 
93  //......................................................................
94 
96 
97  //......................................................................
98 
100 
101  //......................................................................
102 
104  {
105  std::swap(fUnderFlowColor, fOverFlowColor);
106  for (int i=0; i<fNcolor/2; ++i) {
107  std::swap(fColors[i], fColors[fNcolor-i-1]);
108  }
109  }
110 
111  //......................................................................
112 
113  bool ColorScale::InBounds(double x) const
114  {
115  if (x>=fXlo && x<=fXhi) return true;
116  return false;
117  }
118 
119  //......................................................................
126  int ColorScale::GetColor(double x) const
127  {
128  if (x<fXlo && fUnderFlowColor!=-1) return fUnderFlowColor;
129  if (x>fXhi && fOverFlowColor !=-1) return fOverFlowColor;
130 
131  double f=0.0;
132  if (fScale == kLinear) {
133  f = (x-fXlo)/(fXhi-fXlo);
134  }
135  else if (fScale == kLog) {
136  f = (log(x)-log(fXlo))/(log(fXhi)-log(fXlo));
137  }
138  else if (fScale == kSqrt) {
139  f = (sqrt(x)-sqrt(fXlo))/(sqrt(fXhi)-sqrt(fXlo));
140  }
141 
142  int indx = (int)floor(f*(float)fNcolor);
143  if (indx<0) indx = 0;
144  if (indx>=fNcolor) indx = fNcolor-1;
145 
146  return fColors[indx];
147  }
148  int ColorScale::operator()(double x) const {
149  return this->GetColor(x);
150  }
151 
152  //.....................................................................
163  void ColorScale::HSVtoRGB(double h, double s, double v,
164  double* r, double* g, double* b) const
165  {
166  // A-chromatic, return grey scale values
167  if (s==0.0) { *r = *g = *b = v; return; }
168 
169  int i;
170  double f, p, q, t;
171  double hh = h;
172  while (hh< 0.0) hh += 360.0;
173  while (hh>360.0) hh -= 360.0;
174  hh /= 60;
175  i = (int)floor(hh);
176  f = hh - i;
177  p = v * (1 - s);
178  q = v * (1 - s*f);
179  t = v * (1 - s*(1-f) );
180  switch( i ) {
181  case 0: *r = v; *g = t; *b = p; break;
182  case 1: *r = q; *g = v; *b = p; break;
183  case 2: *r = p; *g = v; *b = t; break;
184  case 3: *r = p; *g = q; *b = v; break;
185  case 4: *r = t; *g = p; *b = v; break;
186  default: *r = v; *g = p; *b = q; break;
187  }
188  }
189 
190  //......................................................................
191 
205  double h1, double h2,
206  double vs1, double vs2)
207  {
208  int i;
209  double r, g, b;
210  double h;
211  double vs, v, s;
212 
213  if (n>128) n = 128;
214  fNcolor = n;
215 
216  for (i=0; i<fNcolor; ++i) {
217  h = h1 + (h2-h1)*(float)i/(float)(fNcolor-1);
218  vs = vs1 + (vs2-vs1)*(float)i/(float)(fNcolor-1);
219  vs = -1.0 + 2.0*vs;
220  if (vs<0.0) { v = 1.0; s = 1.0+vs; }
221  else { v = 1.0-vs; s = 1.0; }
222  this->HSVtoRGB(h, s, v, &r, &g, &b);
223  r *= 255;
224  g *= 255;
225  b *= 255;
226  fColors[i] = TColor::GetColor((int)r,(int)g,(int)b);
227  }
228  }
229 
230  //......................................................................
235  {
236  gStyle->SetPalette(fNcolor, fColors);
237  }
238 
239  //......................................................................
244  {
245  fNcolor = 25;
246  static int rgb[25][3] = {
247  {153, 15, 15},
248  {178, 44, 44},
249  {204, 81, 81},
250  {229, 126, 126},
251  {255, 178, 178},
252  {153, 84, 15},
253  {178, 111, 44},
254  {204, 142, 81},
255  {229, 177, 126},
256  {255, 216, 178},
257  {107, 153, 15},
258  {133, 178, 44},
259  {163, 204, 81},
260  {195, 229, 126},
261  {229, 255, 178},
262  {15, 107, 153},
263  {44, 133, 178},
264  {81, 163, 204},
265  {126, 195, 229},
266  {178, 229, 255},
267  {38, 15, 153},
268  {66, 44, 178},
269  {101, 81, 204},
270  {143, 126, 229},
271  {191, 178, 255}
272  };
273  for (int i=0; i<25; ++i) {
274  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
275  }
276  }
277 
278  //......................................................................
283  {
284  fNcolor = 25;
285  static int rgb[25][3] = {
286  {178, 229, 255}, // blue5
287  {126, 195, 229}, // blue4
288  {81, 163, 204}, // blue3
289  {44, 133, 178}, // blue2
290  {15, 107, 153}, // blue1
291  {191, 178, 255}, // violet5
292  {143, 126, 229}, // violet4
293  {101, 81, 204}, // violet3
294  {66, 44, 178}, // violet2
295  {38, 15, 153}, // violet1
296  {153, 15, 15}, // red1
297  {178, 44, 44}, // red2
298  {204, 81, 81}, // red3
299  {229, 126, 126}, // red4
300  {255, 178, 178}, // red5
301  {153, 84, 15}, // brown1
302  {178, 111, 44}, // brown2
303  {204, 142, 81}, // brown3
304  {229, 177, 126}, // brown4
305  {255, 216, 178}, // brown5
306  {107, 153, 15}, // green1
307  {133, 178, 44}, // green2
308  {163, 204, 81}, // green3
309  {195, 229, 126}, // green4
310  {229, 255, 178} // green5
311  };
312  for (int i=0; i<25; ++i) {
313  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
314  }
315  }
316 
317  //......................................................................
318 
320  {
321  int rgb[256];
322  rgb[ 0] = TColor::GetColor( 0, 0, 0 );
323  rgb[ 1] = TColor::GetColor( 45, 0, 36 );
324  rgb[ 2] = TColor::GetColor( 56, 0, 46 );
325  rgb[ 3] = TColor::GetColor( 60, 0, 49 );
326  rgb[ 4] = TColor::GetColor( 67, 0, 54 );
327  rgb[ 5] = TColor::GetColor( 70, 0, 59 );
328  rgb[ 6] = TColor::GetColor( 71, 0, 61 );
329  rgb[ 7] = TColor::GetColor( 75, 0, 68 );
330  rgb[ 8] = TColor::GetColor( 74, 0, 73 );
331  rgb[ 9] = TColor::GetColor( 74, 0, 77 );
332  rgb[ 10] = TColor::GetColor( 73, 0, 81 );
333  rgb[ 11] = TColor::GetColor( 71, 0, 87 );
334  rgb[ 12] = TColor::GetColor( 69, 1, 90 );
335  rgb[ 13] = TColor::GetColor( 68, 2, 94 );
336  rgb[ 14] = TColor::GetColor( 66, 3, 97 );
337  rgb[ 15] = TColor::GetColor( 63, 6, 102 );
338  rgb[ 16] = TColor::GetColor( 61, 7, 106 );
339  rgb[ 17] = TColor::GetColor( 58, 10, 109 );
340  rgb[ 18] = TColor::GetColor( 56, 12, 113 );
341  rgb[ 19] = TColor::GetColor( 53, 15, 116 );
342  rgb[ 20] = TColor::GetColor( 48, 18, 119 );
343  rgb[ 21] = TColor::GetColor( 47, 20, 121 );
344  rgb[ 22] = TColor::GetColor( 44, 23, 124 );
345  rgb[ 23] = TColor::GetColor( 41, 27, 128 );
346  rgb[ 24] = TColor::GetColor( 40, 28, 129 );
347  rgb[ 25] = TColor::GetColor( 37, 32, 132 );
348  rgb[ 26] = TColor::GetColor( 34, 36, 134 );
349  rgb[ 27] = TColor::GetColor( 29, 43, 137 );
350  rgb[ 28] = TColor::GetColor( 25, 52, 138 );
351  rgb[ 29] = TColor::GetColor( 24, 57, 139 );
352  rgb[ 30] = TColor::GetColor( 24, 62, 141 );
353  rgb[ 31] = TColor::GetColor( 24, 64, 142 );
354  rgb[ 32] = TColor::GetColor( 23, 65, 142 );
355  rgb[ 33] = TColor::GetColor( 23, 69, 143 );
356  rgb[ 34] = TColor::GetColor( 23, 71, 142 );
357  rgb[ 35] = TColor::GetColor( 23, 71, 142 );
358  rgb[ 36] = TColor::GetColor( 23, 73, 142 );
359  rgb[ 37] = TColor::GetColor( 23, 75, 142 );
360  rgb[ 38] = TColor::GetColor( 23, 75, 142 );
361  rgb[ 39] = TColor::GetColor( 23, 78, 142 );
362  rgb[ 40] = TColor::GetColor( 23, 80, 142 );
363  rgb[ 41] = TColor::GetColor( 23, 80, 142 );
364  rgb[ 42] = TColor::GetColor( 23, 82, 141 );
365  rgb[ 43] = TColor::GetColor( 23, 85, 141 );
366  rgb[ 44] = TColor::GetColor( 23, 85, 141 );
367  rgb[ 45] = TColor::GetColor( 23, 87, 140 );
368  rgb[ 46] = TColor::GetColor( 23, 87, 140 );
369  rgb[ 47] = TColor::GetColor( 24, 90, 140 );
370  rgb[ 48] = TColor::GetColor( 24, 90, 140 );
371  rgb[ 49] = TColor::GetColor( 24, 93, 139 );
372  rgb[ 50] = TColor::GetColor( 24, 93, 139 );
373  rgb[ 51] = TColor::GetColor( 24, 93, 139 );
374  rgb[ 52] = TColor::GetColor( 24, 93, 139 );
375  rgb[ 53] = TColor::GetColor( 24, 97, 139 );
376  rgb[ 54] = TColor::GetColor( 24, 97, 139 );
377  rgb[ 55] = TColor::GetColor( 25, 101, 138 );
378  rgb[ 56] = TColor::GetColor( 25, 101, 138 );
379  rgb[ 57] = TColor::GetColor( 25, 104, 137 );
380  rgb[ 58] = TColor::GetColor( 25, 104, 137 );
381  rgb[ 59] = TColor::GetColor( 25, 104, 137 );
382  rgb[ 60] = TColor::GetColor( 26, 108, 137 );
383  rgb[ 61] = TColor::GetColor( 26, 108, 137 );
384  rgb[ 62] = TColor::GetColor( 27, 111, 136 );
385  rgb[ 63] = TColor::GetColor( 27, 111, 136 );
386  rgb[ 64] = TColor::GetColor( 27, 111, 136 );
387  rgb[ 65] = TColor::GetColor( 27, 115, 135 );
388  rgb[ 66] = TColor::GetColor( 27, 115, 135 );
389  rgb[ 67] = TColor::GetColor( 28, 118, 134 );
390  rgb[ 68] = TColor::GetColor( 28, 118, 134 );
391  rgb[ 69] = TColor::GetColor( 29, 122, 133 );
392  rgb[ 70] = TColor::GetColor( 29, 122, 133 );
393  rgb[ 71] = TColor::GetColor( 29, 122, 133 );
394  rgb[ 72] = TColor::GetColor( 29, 122, 133 );
395  rgb[ 73] = TColor::GetColor( 29, 125, 132 );
396  rgb[ 74] = TColor::GetColor( 29, 125, 132 );
397  rgb[ 75] = TColor::GetColor( 30, 128, 131 );
398  rgb[ 76] = TColor::GetColor( 30, 128, 131 );
399  rgb[ 77] = TColor::GetColor( 31, 131, 130 );
400  rgb[ 78] = TColor::GetColor( 31, 131, 130 );
401  rgb[ 79] = TColor::GetColor( 31, 131, 130 );
402  rgb[ 80] = TColor::GetColor( 32, 134, 128 );
403  rgb[ 81] = TColor::GetColor( 32, 134, 128 );
404  rgb[ 82] = TColor::GetColor( 33, 137, 127 );
405  rgb[ 83] = TColor::GetColor( 33, 137, 127 );
406  rgb[ 84] = TColor::GetColor( 33, 137, 127 );
407  rgb[ 85] = TColor::GetColor( 34, 140, 125 );
408  rgb[ 86] = TColor::GetColor( 34, 140, 125 );
409  rgb[ 87] = TColor::GetColor( 35, 142, 123 );
410  rgb[ 88] = TColor::GetColor( 35, 142, 123 );
411  rgb[ 89] = TColor::GetColor( 36, 145, 121 );
412  rgb[ 90] = TColor::GetColor( 36, 145, 121 );
413  rgb[ 91] = TColor::GetColor( 36, 145, 121 );
414  rgb[ 92] = TColor::GetColor( 37, 147, 118 );
415  rgb[ 93] = TColor::GetColor( 37, 147, 118 );
416  rgb[ 94] = TColor::GetColor( 38, 150, 116 );
417  rgb[ 95] = TColor::GetColor( 38, 150, 116 );
418  rgb[ 96] = TColor::GetColor( 40, 152, 113 );
419  rgb[ 97] = TColor::GetColor( 40, 152, 113 );
420  rgb[ 98] = TColor::GetColor( 41, 154, 111 );
421  rgb[ 99] = TColor::GetColor( 41, 154, 111 );
422  rgb[100] = TColor::GetColor( 42, 156, 108 );
423  rgb[101] = TColor::GetColor( 42, 156, 108 );
424  rgb[102] = TColor::GetColor( 43, 158, 106 );
425  rgb[103] = TColor::GetColor( 43, 158, 106 );
426  rgb[104] = TColor::GetColor( 43, 158, 106 );
427  rgb[105] = TColor::GetColor( 45, 160, 104 );
428  rgb[106] = TColor::GetColor( 45, 160, 104 );
429  rgb[107] = TColor::GetColor( 46, 162, 101 );
430  rgb[108] = TColor::GetColor( 46, 162, 101 );
431  rgb[109] = TColor::GetColor( 48, 164, 99 );
432  rgb[110] = TColor::GetColor( 48, 164, 99 );
433  rgb[111] = TColor::GetColor( 50, 166, 97 );
434  rgb[112] = TColor::GetColor( 50, 166, 97 );
435  rgb[113] = TColor::GetColor( 51, 168, 95 );
436  rgb[114] = TColor::GetColor( 53, 170, 93 );
437  rgb[115] = TColor::GetColor( 53, 170, 93 );
438  rgb[116] = TColor::GetColor( 53, 170, 93 );
439  rgb[117] = TColor::GetColor( 55, 172, 91 );
440  rgb[118] = TColor::GetColor( 55, 172, 91 );
441  rgb[119] = TColor::GetColor( 57, 174, 88 );
442  rgb[120] = TColor::GetColor( 57, 174, 88 );
443  rgb[121] = TColor::GetColor( 59, 175, 86 );
444  rgb[122] = TColor::GetColor( 62, 177, 84 );
445  rgb[123] = TColor::GetColor( 64, 178, 82 );
446  rgb[124] = TColor::GetColor( 64, 178, 82 );
447  rgb[125] = TColor::GetColor( 67, 180, 80 );
448  rgb[126] = TColor::GetColor( 67, 180, 80 );
449  rgb[127] = TColor::GetColor( 69, 181, 79 );
450  rgb[128] = TColor::GetColor( 72, 183, 77 );
451  rgb[129] = TColor::GetColor( 72, 183, 77 );
452  rgb[130] = TColor::GetColor( 72, 183, 77 );
453  rgb[131] = TColor::GetColor( 75, 184, 76 );
454  rgb[132] = TColor::GetColor( 77, 186, 74 );
455  rgb[133] = TColor::GetColor( 80, 187, 73 );
456  rgb[134] = TColor::GetColor( 83, 189, 72 );
457  rgb[135] = TColor::GetColor( 87, 190, 72 );
458  rgb[136] = TColor::GetColor( 91, 191, 71 );
459  rgb[137] = TColor::GetColor( 95, 192, 70 );
460  rgb[138] = TColor::GetColor( 99, 193, 70 );
461  rgb[139] = TColor::GetColor( 103, 194, 70 );
462  rgb[140] = TColor::GetColor( 107, 195, 70 );
463  rgb[141] = TColor::GetColor( 111, 196, 70 );
464  rgb[142] = TColor::GetColor( 111, 196, 70 );
465  rgb[143] = TColor::GetColor( 115, 196, 70 );
466  rgb[144] = TColor::GetColor( 119, 197, 70 );
467  rgb[145] = TColor::GetColor( 123, 197, 70 );
468  rgb[146] = TColor::GetColor( 130, 198, 71 );
469  rgb[147] = TColor::GetColor( 133, 199, 71 );
470  rgb[148] = TColor::GetColor( 137, 199, 72 );
471  rgb[149] = TColor::GetColor( 140, 199, 72 );
472  rgb[150] = TColor::GetColor( 143, 199, 73 );
473  rgb[151] = TColor::GetColor( 143, 199, 73 );
474  rgb[152] = TColor::GetColor( 147, 199, 73 );
475  rgb[153] = TColor::GetColor( 150, 199, 74 );
476  rgb[154] = TColor::GetColor( 153, 199, 74 );
477  rgb[155] = TColor::GetColor( 156, 199, 75 );
478  rgb[156] = TColor::GetColor( 160, 200, 76 );
479  rgb[157] = TColor::GetColor( 167, 200, 78 );
480  rgb[158] = TColor::GetColor( 170, 200, 79 );
481  rgb[159] = TColor::GetColor( 173, 200, 79 );
482  rgb[160] = TColor::GetColor( 173, 200, 79 );
483  rgb[161] = TColor::GetColor( 177, 200, 80 );
484  rgb[162] = TColor::GetColor( 180, 200, 81 );
485  rgb[163] = TColor::GetColor( 183, 199, 82 );
486  rgb[164] = TColor::GetColor( 186, 199, 82 );
487  rgb[165] = TColor::GetColor( 190, 199, 83 );
488  rgb[166] = TColor::GetColor( 196, 199, 85 );
489  rgb[167] = TColor::GetColor( 199, 198, 85 );
490  rgb[168] = TColor::GetColor( 199, 198, 85 );
491  rgb[169] = TColor::GetColor( 203, 198, 86 );
492  rgb[170] = TColor::GetColor( 206, 197, 87 );
493  rgb[171] = TColor::GetColor( 212, 197, 89 );
494  rgb[172] = TColor::GetColor( 215, 196, 90 );
495  rgb[173] = TColor::GetColor( 218, 195, 91 );
496  rgb[174] = TColor::GetColor( 224, 194, 94 );
497  rgb[175] = TColor::GetColor( 224, 194, 94 );
498  rgb[176] = TColor::GetColor( 230, 193, 96 );
499  rgb[177] = TColor::GetColor( 233, 192, 98 );
500  rgb[178] = TColor::GetColor( 236, 190, 100 );
501  rgb[179] = TColor::GetColor( 238, 189, 104 );
502  rgb[180] = TColor::GetColor( 240, 188, 106 );
503  rgb[181] = TColor::GetColor( 240, 188, 106 );
504  rgb[182] = TColor::GetColor( 242, 187, 110 );
505  rgb[183] = TColor::GetColor( 244, 185, 114 );
506  rgb[184] = TColor::GetColor( 245, 184, 116 );
507  rgb[185] = TColor::GetColor( 247, 183, 120 );
508  rgb[186] = TColor::GetColor( 248, 182, 123 );
509  rgb[187] = TColor::GetColor( 248, 182, 123 );
510  rgb[188] = TColor::GetColor( 250, 181, 125 );
511  rgb[189] = TColor::GetColor( 251, 180, 128 );
512  rgb[190] = TColor::GetColor( 252, 180, 130 );
513  rgb[191] = TColor::GetColor( 253, 180, 133 );
514  rgb[192] = TColor::GetColor( 253, 180, 133 );
515  rgb[193] = TColor::GetColor( 254, 180, 134 );
516  rgb[194] = TColor::GetColor( 254, 179, 138 );
517  rgb[195] = TColor::GetColor( 255, 179, 142 );
518  rgb[196] = TColor::GetColor( 255, 179, 145 );
519  rgb[197] = TColor::GetColor( 255, 179, 145 );
520  rgb[198] = TColor::GetColor( 255, 179, 152 );
521  rgb[199] = TColor::GetColor( 255, 180, 161 );
522  rgb[200] = TColor::GetColor( 255, 180, 164 );
523  rgb[201] = TColor::GetColor( 255, 180, 167 );
524  rgb[202] = TColor::GetColor( 255, 180, 167 );
525  rgb[203] = TColor::GetColor( 255, 181, 169 );
526  rgb[204] = TColor::GetColor( 255, 181, 170 );
527  rgb[205] = TColor::GetColor( 255, 182, 173 );
528  rgb[206] = TColor::GetColor( 255, 183, 176 );
529  rgb[207] = TColor::GetColor( 255, 183, 176 );
530  rgb[208] = TColor::GetColor( 255, 184, 179 );
531  rgb[209] = TColor::GetColor( 255, 185, 179 );
532  rgb[210] = TColor::GetColor( 255, 185, 182 );
533  rgb[211] = TColor::GetColor( 255, 186, 182 );
534  rgb[212] = TColor::GetColor( 255, 186, 182 );
535  rgb[213] = TColor::GetColor( 255, 187, 185 );
536  rgb[214] = TColor::GetColor( 255, 188, 185 );
537  rgb[215] = TColor::GetColor( 255, 189, 188 );
538  rgb[216] = TColor::GetColor( 255, 189, 188 );
539  rgb[217] = TColor::GetColor( 255, 190, 188 );
540  rgb[218] = TColor::GetColor( 255, 191, 191 );
541  rgb[219] = TColor::GetColor( 255, 192, 191 );
542  rgb[220] = TColor::GetColor( 255, 194, 194 );
543  rgb[221] = TColor::GetColor( 255, 194, 194 );
544  rgb[222] = TColor::GetColor( 255, 197, 197 );
545  rgb[223] = TColor::GetColor( 255, 198, 198 );
546  rgb[224] = TColor::GetColor( 255, 200, 200 );
547  rgb[225] = TColor::GetColor( 255, 201, 201 );
548  rgb[226] = TColor::GetColor( 255, 201, 201 );
549  rgb[227] = TColor::GetColor( 255, 202, 202 );
550  rgb[228] = TColor::GetColor( 255, 203, 203 );
551  rgb[229] = TColor::GetColor( 255, 205, 205 );
552  rgb[230] = TColor::GetColor( 255, 206, 206 );
553  rgb[231] = TColor::GetColor( 255, 206, 206 );
554  rgb[232] = TColor::GetColor( 255, 208, 208 );
555  rgb[233] = TColor::GetColor( 255, 209, 209 );
556  rgb[234] = TColor::GetColor( 255, 211, 211 );
557  rgb[235] = TColor::GetColor( 255, 215, 215 );
558  rgb[236] = TColor::GetColor( 255, 216, 216 );
559  rgb[237] = TColor::GetColor( 255, 216, 216 );
560  rgb[238] = TColor::GetColor( 255, 218, 218 );
561  rgb[239] = TColor::GetColor( 255, 219, 219 );
562  rgb[240] = TColor::GetColor( 255, 221, 221 );
563  rgb[241] = TColor::GetColor( 255, 223, 223 );
564  rgb[242] = TColor::GetColor( 255, 226, 226 );
565  rgb[243] = TColor::GetColor( 255, 228, 228 );
566  rgb[244] = TColor::GetColor( 255, 230, 230 );
567  rgb[245] = TColor::GetColor( 255, 230, 230 );
568  rgb[246] = TColor::GetColor( 255, 232, 232 );
569  rgb[247] = TColor::GetColor( 255, 235, 235 );
570  rgb[248] = TColor::GetColor( 255, 237, 237 );
571  rgb[249] = TColor::GetColor( 255, 240, 240 );
572  rgb[250] = TColor::GetColor( 255, 243, 243 );
573  rgb[251] = TColor::GetColor( 255, 246, 246 );
574  rgb[252] = TColor::GetColor( 255, 249, 249 );
575  rgb[253] = TColor::GetColor( 255, 251, 251 );
576  rgb[254] = TColor::GetColor( 255, 253, 253 );
577  rgb[255] = TColor::GetColor( 255, 255, 255 );
578 
579  fNcolor = 256;
580  for (int i=0; i<256; ++i) fColors[i] = rgb[255-i];
581  }
582 
583  //......................................................................
584 
586  {
587  fNcolor = 256;
588  fColors[ 0] = TColor::GetColor( 45, 0, 36 );
589  fColors[ 1] = TColor::GetColor( 45, 0, 36 );
590  fColors[ 2] = TColor::GetColor( 56, 0, 46 );
591  fColors[ 3] = TColor::GetColor( 60, 0, 49 );
592  fColors[ 4] = TColor::GetColor( 67, 0, 54 );
593  fColors[ 5] = TColor::GetColor( 70, 0, 59 );
594  fColors[ 6] = TColor::GetColor( 71, 0, 61 );
595  fColors[ 7] = TColor::GetColor( 75, 0, 68 );
596  fColors[ 8] = TColor::GetColor( 74, 0, 73 );
597  fColors[ 9] = TColor::GetColor( 74, 0, 77 );
598  fColors[ 10] = TColor::GetColor( 73, 0, 81 );
599  fColors[ 11] = TColor::GetColor( 71, 0, 87 );
600  fColors[ 12] = TColor::GetColor( 69, 1, 90 );
601  fColors[ 13] = TColor::GetColor( 68, 2, 94 );
602  fColors[ 14] = TColor::GetColor( 66, 3, 97 );
603  fColors[ 15] = TColor::GetColor( 63, 6, 102 );
604  fColors[ 16] = TColor::GetColor( 61, 7, 106 );
605  fColors[ 17] = TColor::GetColor( 58, 10, 109 );
606  fColors[ 18] = TColor::GetColor( 56, 12, 113 );
607  fColors[ 19] = TColor::GetColor( 53, 15, 116 );
608  fColors[ 20] = TColor::GetColor( 48, 18, 119 );
609  fColors[ 21] = TColor::GetColor( 47, 20, 121 );
610  fColors[ 22] = TColor::GetColor( 44, 23, 124 );
611  fColors[ 23] = TColor::GetColor( 41, 27, 128 );
612  fColors[ 24] = TColor::GetColor( 40, 28, 129 );
613  fColors[ 25] = TColor::GetColor( 37, 32, 132 );
614  fColors[ 26] = TColor::GetColor( 34, 36, 134 );
615  fColors[ 27] = TColor::GetColor( 29, 43, 137 );
616  fColors[ 28] = TColor::GetColor( 25, 52, 138 );
617  fColors[ 29] = TColor::GetColor( 24, 57, 139 );
618  fColors[ 30] = TColor::GetColor( 24, 62, 141 );
619  fColors[ 31] = TColor::GetColor( 24, 64, 142 );
620  fColors[ 32] = TColor::GetColor( 23, 65, 142 );
621  fColors[ 33] = TColor::GetColor( 23, 69, 143 );
622  fColors[ 34] = TColor::GetColor( 23, 71, 142 );
623  fColors[ 35] = TColor::GetColor( 23, 71, 142 );
624  fColors[ 36] = TColor::GetColor( 23, 73, 142 );
625  fColors[ 37] = TColor::GetColor( 23, 75, 142 );
626  fColors[ 38] = TColor::GetColor( 23, 75, 142 );
627  fColors[ 39] = TColor::GetColor( 23, 78, 142 );
628  fColors[ 40] = TColor::GetColor( 23, 80, 142 );
629  fColors[ 41] = TColor::GetColor( 23, 80, 142 );
630  fColors[ 42] = TColor::GetColor( 23, 82, 141 );
631  fColors[ 43] = TColor::GetColor( 23, 85, 141 );
632  fColors[ 44] = TColor::GetColor( 23, 85, 141 );
633  fColors[ 45] = TColor::GetColor( 23, 87, 140 );
634  fColors[ 46] = TColor::GetColor( 23, 87, 140 );
635  fColors[ 47] = TColor::GetColor( 24, 90, 140 );
636  fColors[ 48] = TColor::GetColor( 24, 90, 140 );
637  fColors[ 49] = TColor::GetColor( 24, 93, 139 );
638  fColors[ 50] = TColor::GetColor( 24, 93, 139 );
639  fColors[ 51] = TColor::GetColor( 24, 93, 139 );
640  fColors[ 52] = TColor::GetColor( 24, 93, 139 );
641  fColors[ 53] = TColor::GetColor( 24, 97, 139 );
642  fColors[ 54] = TColor::GetColor( 24, 97, 139 );
643  fColors[ 55] = TColor::GetColor( 25, 101, 138 );
644  fColors[ 56] = TColor::GetColor( 25, 101, 138 );
645  fColors[ 57] = TColor::GetColor( 25, 104, 137 );
646  fColors[ 58] = TColor::GetColor( 25, 104, 137 );
647  fColors[ 59] = TColor::GetColor( 25, 104, 137 );
648  fColors[ 60] = TColor::GetColor( 26, 108, 137 );
649  fColors[ 61] = TColor::GetColor( 26, 108, 137 );
650  fColors[ 62] = TColor::GetColor( 27, 111, 136 );
651  fColors[ 63] = TColor::GetColor( 27, 111, 136 );
652  fColors[ 64] = TColor::GetColor( 27, 111, 136 );
653  fColors[ 65] = TColor::GetColor( 27, 115, 135 );
654  fColors[ 66] = TColor::GetColor( 27, 115, 135 );
655  fColors[ 67] = TColor::GetColor( 28, 118, 134 );
656  fColors[ 68] = TColor::GetColor( 28, 118, 134 );
657  fColors[ 69] = TColor::GetColor( 29, 122, 133 );
658  fColors[ 70] = TColor::GetColor( 29, 122, 133 );
659  fColors[ 71] = TColor::GetColor( 29, 122, 133 );
660  fColors[ 72] = TColor::GetColor( 29, 122, 133 );
661  fColors[ 73] = TColor::GetColor( 29, 125, 132 );
662  fColors[ 74] = TColor::GetColor( 29, 125, 132 );
663  fColors[ 75] = TColor::GetColor( 30, 128, 131 );
664  fColors[ 76] = TColor::GetColor( 30, 128, 131 );
665  fColors[ 77] = TColor::GetColor( 31, 131, 130 );
666  fColors[ 78] = TColor::GetColor( 31, 131, 130 );
667  fColors[ 79] = TColor::GetColor( 31, 131, 130 );
668  fColors[ 80] = TColor::GetColor( 32, 134, 128 );
669  fColors[ 81] = TColor::GetColor( 32, 134, 128 );
670  fColors[ 82] = TColor::GetColor( 33, 137, 127 );
671  fColors[ 83] = TColor::GetColor( 33, 137, 127 );
672  fColors[ 84] = TColor::GetColor( 33, 137, 127 );
673  fColors[ 85] = TColor::GetColor( 34, 140, 125 );
674  fColors[ 86] = TColor::GetColor( 34, 140, 125 );
675  fColors[ 87] = TColor::GetColor( 35, 142, 123 );
676  fColors[ 88] = TColor::GetColor( 35, 142, 123 );
677  fColors[ 89] = TColor::GetColor( 36, 145, 121 );
678  fColors[ 90] = TColor::GetColor( 36, 145, 121 );
679  fColors[ 91] = TColor::GetColor( 36, 145, 121 );
680  fColors[ 92] = TColor::GetColor( 37, 147, 118 );
681  fColors[ 93] = TColor::GetColor( 37, 147, 118 );
682  fColors[ 94] = TColor::GetColor( 38, 150, 116 );
683  fColors[ 95] = TColor::GetColor( 38, 150, 116 );
684  fColors[ 96] = TColor::GetColor( 40, 152, 113 );
685  fColors[ 97] = TColor::GetColor( 40, 152, 113 );
686  fColors[ 98] = TColor::GetColor( 41, 154, 111 );
687  fColors[ 99] = TColor::GetColor( 41, 154, 111 );
688  fColors[100] = TColor::GetColor( 42, 156, 108 );
689  fColors[101] = TColor::GetColor( 42, 156, 108 );
690  fColors[102] = TColor::GetColor( 43, 158, 106 );
691  fColors[103] = TColor::GetColor( 43, 158, 106 );
692  fColors[104] = TColor::GetColor( 43, 158, 106 );
693  fColors[105] = TColor::GetColor( 45, 160, 104 );
694  fColors[106] = TColor::GetColor( 45, 160, 104 );
695  fColors[107] = TColor::GetColor( 46, 162, 101 );
696  fColors[108] = TColor::GetColor( 46, 162, 101 );
697  fColors[109] = TColor::GetColor( 48, 164, 99 );
698  fColors[110] = TColor::GetColor( 48, 164, 99 );
699  fColors[111] = TColor::GetColor( 50, 166, 97 );
700  fColors[112] = TColor::GetColor( 50, 166, 97 );
701  fColors[113] = TColor::GetColor( 51, 168, 95 );
702  fColors[114] = TColor::GetColor( 53, 170, 93 );
703  fColors[115] = TColor::GetColor( 53, 170, 93 );
704  fColors[116] = TColor::GetColor( 53, 170, 93 );
705  fColors[117] = TColor::GetColor( 55, 172, 91 );
706  fColors[118] = TColor::GetColor( 55, 172, 91 );
707  fColors[119] = TColor::GetColor( 57, 174, 88 );
708  fColors[120] = TColor::GetColor( 57, 174, 88 );
709  fColors[121] = TColor::GetColor( 59, 175, 86 );
710  fColors[122] = TColor::GetColor( 62, 177, 84 );
711  fColors[123] = TColor::GetColor( 64, 178, 82 );
712  fColors[124] = TColor::GetColor( 64, 178, 82 );
713  fColors[125] = TColor::GetColor( 67, 180, 80 );
714  fColors[126] = TColor::GetColor( 67, 180, 80 );
715  fColors[127] = TColor::GetColor( 69, 181, 79 );
716  fColors[128] = TColor::GetColor( 72, 183, 77 );
717  fColors[129] = TColor::GetColor( 72, 183, 77 );
718  fColors[130] = TColor::GetColor( 72, 183, 77 );
719  fColors[131] = TColor::GetColor( 75, 184, 76 );
720  fColors[132] = TColor::GetColor( 77, 186, 74 );
721  fColors[133] = TColor::GetColor( 80, 187, 73 );
722  fColors[134] = TColor::GetColor( 83, 189, 72 );
723  fColors[135] = TColor::GetColor( 87, 190, 72 );
724  fColors[136] = TColor::GetColor( 91, 191, 71 );
725  fColors[137] = TColor::GetColor( 95, 192, 70 );
726  fColors[138] = TColor::GetColor( 99, 193, 70 );
727  fColors[139] = TColor::GetColor( 103, 194, 70 );
728  fColors[140] = TColor::GetColor( 107, 195, 70 );
729  fColors[141] = TColor::GetColor( 111, 196, 70 );
730  fColors[142] = TColor::GetColor( 111, 196, 70 );
731  fColors[143] = TColor::GetColor( 115, 196, 70 );
732  fColors[144] = TColor::GetColor( 119, 197, 70 );
733  fColors[145] = TColor::GetColor( 123, 197, 70 );
734  fColors[146] = TColor::GetColor( 130, 198, 71 );
735  fColors[147] = TColor::GetColor( 133, 199, 71 );
736  fColors[148] = TColor::GetColor( 137, 199, 72 );
737  fColors[149] = TColor::GetColor( 140, 199, 72 );
738  fColors[150] = TColor::GetColor( 143, 199, 73 );
739  fColors[151] = TColor::GetColor( 143, 199, 73 );
740  fColors[152] = TColor::GetColor( 147, 199, 73 );
741  fColors[153] = TColor::GetColor( 150, 199, 74 );
742  fColors[154] = TColor::GetColor( 153, 199, 74 );
743  fColors[155] = TColor::GetColor( 156, 199, 75 );
744  fColors[156] = TColor::GetColor( 160, 200, 76 );
745  fColors[157] = TColor::GetColor( 167, 200, 78 );
746  fColors[158] = TColor::GetColor( 170, 200, 79 );
747  fColors[159] = TColor::GetColor( 173, 200, 79 );
748  fColors[160] = TColor::GetColor( 173, 200, 79 );
749  fColors[161] = TColor::GetColor( 177, 200, 80 );
750  fColors[162] = TColor::GetColor( 180, 200, 81 );
751  fColors[163] = TColor::GetColor( 183, 199, 82 );
752  fColors[164] = TColor::GetColor( 186, 199, 82 );
753  fColors[165] = TColor::GetColor( 190, 199, 83 );
754  fColors[166] = TColor::GetColor( 196, 199, 85 );
755  fColors[167] = TColor::GetColor( 199, 198, 85 );
756  fColors[168] = TColor::GetColor( 199, 198, 85 );
757  fColors[169] = TColor::GetColor( 203, 198, 86 );
758  fColors[170] = TColor::GetColor( 206, 197, 87 );
759  fColors[171] = TColor::GetColor( 212, 197, 89 );
760  fColors[172] = TColor::GetColor( 215, 196, 90 );
761  fColors[173] = TColor::GetColor( 218, 195, 91 );
762  fColors[174] = TColor::GetColor( 224, 194, 94 );
763  fColors[175] = TColor::GetColor( 224, 194, 94 );
764  fColors[176] = TColor::GetColor( 230, 193, 96 );
765  fColors[177] = TColor::GetColor( 233, 192, 98 );
766  fColors[178] = TColor::GetColor( 236, 190, 100 );
767  fColors[179] = TColor::GetColor( 238, 189, 104 );
768  fColors[180] = TColor::GetColor( 240, 188, 106 );
769  fColors[181] = TColor::GetColor( 240, 188, 106 );
770  fColors[182] = TColor::GetColor( 242, 187, 110 );
771  fColors[183] = TColor::GetColor( 244, 185, 114 );
772  fColors[184] = TColor::GetColor( 245, 184, 116 );
773  fColors[185] = TColor::GetColor( 247, 183, 120 );
774  fColors[186] = TColor::GetColor( 248, 182, 123 );
775  fColors[187] = TColor::GetColor( 248, 182, 123 );
776  fColors[188] = TColor::GetColor( 250, 181, 125 );
777  fColors[189] = TColor::GetColor( 251, 180, 128 );
778  fColors[190] = TColor::GetColor( 252, 180, 130 );
779  fColors[191] = TColor::GetColor( 253, 180, 133 );
780  fColors[192] = TColor::GetColor( 253, 180, 133 );
781  fColors[193] = TColor::GetColor( 254, 180, 134 );
782  fColors[194] = TColor::GetColor( 254, 179, 138 );
783  fColors[195] = TColor::GetColor( 255, 179, 142 );
784  fColors[196] = TColor::GetColor( 255, 179, 145 );
785  fColors[197] = TColor::GetColor( 255, 179, 145 );
786  fColors[198] = TColor::GetColor( 255, 179, 152 );
787  fColors[199] = TColor::GetColor( 255, 180, 161 );
788  fColors[200] = TColor::GetColor( 255, 180, 164 );
789  fColors[201] = TColor::GetColor( 255, 180, 167 );
790  fColors[202] = TColor::GetColor( 255, 180, 167 );
791  fColors[203] = TColor::GetColor( 255, 181, 169 );
792  fColors[204] = TColor::GetColor( 255, 181, 170 );
793  fColors[205] = TColor::GetColor( 255, 182, 173 );
794  fColors[206] = TColor::GetColor( 255, 183, 176 );
795  fColors[207] = TColor::GetColor( 255, 183, 176 );
796  fColors[208] = TColor::GetColor( 255, 184, 179 );
797  fColors[209] = TColor::GetColor( 255, 185, 179 );
798  fColors[210] = TColor::GetColor( 255, 185, 182 );
799  fColors[211] = TColor::GetColor( 255, 186, 182 );
800  fColors[212] = TColor::GetColor( 255, 186, 182 );
801  fColors[213] = TColor::GetColor( 255, 187, 185 );
802  fColors[214] = TColor::GetColor( 255, 188, 185 );
803  fColors[215] = TColor::GetColor( 255, 189, 188 );
804  fColors[216] = TColor::GetColor( 255, 189, 188 );
805  fColors[217] = TColor::GetColor( 255, 190, 188 );
806  fColors[218] = TColor::GetColor( 255, 191, 191 );
807  fColors[219] = TColor::GetColor( 255, 192, 191 );
808  fColors[220] = TColor::GetColor( 255, 194, 194 );
809  fColors[221] = TColor::GetColor( 255, 194, 194 );
810  fColors[222] = TColor::GetColor( 255, 197, 197 );
811  fColors[223] = TColor::GetColor( 255, 198, 198 );
812  fColors[224] = TColor::GetColor( 255, 200, 200 );
813  fColors[225] = TColor::GetColor( 255, 201, 201 );
814  fColors[226] = TColor::GetColor( 255, 201, 201 );
815  fColors[227] = TColor::GetColor( 255, 202, 202 );
816  fColors[228] = TColor::GetColor( 255, 203, 203 );
817  fColors[229] = TColor::GetColor( 255, 205, 205 );
818  fColors[230] = TColor::GetColor( 255, 206, 206 );
819  fColors[231] = TColor::GetColor( 255, 206, 206 );
820  fColors[232] = TColor::GetColor( 255, 208, 208 );
821  fColors[233] = TColor::GetColor( 255, 209, 209 );
822  fColors[234] = TColor::GetColor( 255, 211, 211 );
823  fColors[235] = TColor::GetColor( 255, 215, 215 );
824  fColors[236] = TColor::GetColor( 255, 216, 216 );
825  fColors[237] = TColor::GetColor( 255, 216, 216 );
826  fColors[238] = TColor::GetColor( 255, 218, 218 );
827  fColors[239] = TColor::GetColor( 255, 219, 219 );
828  fColors[240] = TColor::GetColor( 255, 221, 221 );
829  fColors[241] = TColor::GetColor( 255, 223, 223 );
830  fColors[242] = TColor::GetColor( 255, 226, 226 );
831  fColors[243] = TColor::GetColor( 255, 228, 228 );
832  fColors[244] = TColor::GetColor( 255, 230, 230 );
833  fColors[245] = TColor::GetColor( 255, 230, 230 );
834  fColors[246] = TColor::GetColor( 255, 232, 232 );
835  fColors[247] = TColor::GetColor( 255, 235, 235 );
836  fColors[248] = TColor::GetColor( 255, 237, 237 );
837  fColors[249] = TColor::GetColor( 255, 240, 240 );
838  fColors[250] = TColor::GetColor( 255, 243, 243 );
839  fColors[251] = TColor::GetColor( 255, 246, 246 );
840  fColors[252] = TColor::GetColor( 255, 249, 249 );
841  fColors[253] = TColor::GetColor( 255, 251, 251 );
842  fColors[254] = TColor::GetColor( 255, 253, 253 );
843  fColors[255] = TColor::GetColor( 255, 255, 255 );
844  }
845 
846  //......................................................................
847 
849  {
850  static int rgb[18][3] = {
851  {0, 80, 0},
852  {0, 134, 0},
853  {0, 187, 0},
854  {0, 241, 0},
855  {80, 255, 80},
856  {134, 255, 134},
857  {187, 255, 187},
858  {255, 255, 255},
859  {255, 241, 255},
860  {255, 187, 255},
861  {255, 134, 255},
862  {255, 80, 255},
863  {241, 0, 241},
864  {187, 0, 187},
865  {134, 0, 134},
866  {80, 0, 80}
867  };
868 
869  fNcolor = 18;
870  for (int i=0; i<18; ++i) {
871  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
872  }
873  }
874 
875  //......................................................................
876 
878  {
879  static int rgb[18][3] = {
880  { 36, 0, 216},
881  { 24, 28, 247},
882  { 40, 87, 255},
883  { 61, 135, 255},
884  { 86, 176, 255},
885  {117, 211, 255},
886  {153, 234, 255},
887  {188, 249, 255},
888  {234, 255, 255},
889  {255, 255, 234},
890  {255, 241, 188},
891  {255, 214, 153},
892  {255, 172, 117},
893  {255, 120, 86},
894  {255, 61, 61},
895  {247, 39, 53},
896  {216, 21, 47},
897  {165, 0, 33}
898  };
899 
900  fNcolor = 18;
901  for (int i=0; i<18; ++i) {
902  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
903  }
904  }
905 
906  //......................................................................
907 
909  {
910  const int NRGBs = 5;
911  double stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 };
912  double red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 };
913  double green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 };
914  double blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 };
915  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, fNcolor);
916  gStyle->SetNumberContours(fNcolor);
917 
918  for (int i=0; i<fNcolor; ++i)
919  fColors[i] = gStyle->GetColorPalette(i);
920 
921  }
922 
923  //......................................................................
924 
926  {
927  static int rgb[14][3] = {
928  {0, 0, 255},
929  {51, 51, 255},
930  {101, 101, 255},
931  {153, 153, 255},
932  {178, 178, 255},
933  {203, 203, 255},
934  {229, 229, 255},
935  {229, 255, 229},
936  {203, 255, 203},
937  {178, 255, 178},
938  {153, 255, 153},
939  {101, 255, 101},
940  {51, 255, 51},
941  {0, 255, 0}
942  };
943 
944  fNcolor = 14;
945  for (int i=0; i<14; ++i) {
946  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
947  }
948  }
949 
950  //......................................................................
951 
953  {
954  static int rgb[18][3] = {
955  {0, 102, 102},
956  {0, 153, 153},
957  {0, 204, 204},
958  {0, 255, 255},
959  {51, 255, 255},
960  {101, 255, 255},
961  {153, 255, 255},
962  {178, 255, 255},
963  {203, 255, 255},
964  {229, 255, 255},
965  {255, 229, 203},
966  {255, 202, 153},
967  {255, 173, 101},
968  {255, 142, 51},
969  {255, 110, 0},
970  {204, 85, 0},
971  {153, 61, 0},
972  {102, 39, 0}
973  };
974 
975  fNcolor = 18;
976  for (int i=0; i<18; ++i) {
977  fColors[i] = TColor::GetColor(rgb[i][0],rgb[i][1],rgb[i][2]);
978  }
979  }
980 
981  //......................................................................
982 
984  {
985  int rgb[12][3] = {
986  {51, 25, 0},
987  {102, 47, 0},
988  {153, 96, 53},
989  {204, 155, 122},
990  {216, 175, 151},
991  {242, 218, 205},
992  {204, 253, 255},
993  {153, 248, 255},
994  {101, 239, 255},
995  {50, 227, 255},
996  {0, 169, 204},
997  {0, 122, 153},
998  };
999 
1000  fNcolor = 12;
1001  for (int i=0; i<12; ++i) {
1002  fColors[i] = TColor::GetColor(rgb[11-i][0],rgb[11-i][1],rgb[11-i][2]);
1003  }
1004  }
1005 
1006  //......................................................................
1007 
1009  {
1010  const int NRGBs = 3;
1011  double stops[NRGBs] = { 0.00, .50, 1.00 };
1012  double red[NRGBs] = { 1.00, .75, 0.00 };
1013  double green[NRGBs] = { 1.00, .75, 0.00 };
1014  double blue[NRGBs] = { 1.00, .75, 0.00 };
1015  TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, fNcolor);
1016  gStyle->SetNumberContours(fNcolor);
1017 
1018  for (int i=0; i<fNcolor; ++i)
1019  fColors[i] = gStyle->GetColorPalette(i);
1020 
1021  }
1022 
1023  //......................................................................
1024 
1026  {
1027  int fRGB[256];
1028  fRGB[ 0] = TColor::GetColor( 0, 0, 0 );
1029  fRGB[ 1] = TColor::GetColor( 35, 0, 0 );
1030  fRGB[ 2] = TColor::GetColor( 52, 0, 0 );
1031  fRGB[ 3] = TColor::GetColor( 60, 0, 0 );
1032  fRGB[ 4] = TColor::GetColor( 63, 1, 0 );
1033  fRGB[ 5] = TColor::GetColor( 64, 2, 0 );
1034  fRGB[ 6] = TColor::GetColor( 68, 5, 0 );
1035  fRGB[ 7] = TColor::GetColor( 69, 6, 0 );
1036  fRGB[ 8] = TColor::GetColor( 72, 8, 0 );
1037  fRGB[ 9] = TColor::GetColor( 74, 10, 0 );
1038  fRGB[ 10] = TColor::GetColor( 77, 12, 0 );
1039  fRGB[ 11] = TColor::GetColor( 78, 14, 0 );
1040  fRGB[ 12] = TColor::GetColor( 81, 16, 0 );
1041  fRGB[ 13] = TColor::GetColor( 83, 17, 0 );
1042  fRGB[ 14] = TColor::GetColor( 85, 19, 0 );
1043  fRGB[ 15] = TColor::GetColor( 86, 20, 0 );
1044  fRGB[ 16] = TColor::GetColor( 89, 22, 0 );
1045  fRGB[ 17] = TColor::GetColor( 91, 24, 0 );
1046  fRGB[ 18] = TColor::GetColor( 92, 25, 0 );
1047  fRGB[ 19] = TColor::GetColor( 94, 26, 0 );
1048  fRGB[ 20] = TColor::GetColor( 95, 28, 0 );
1049  fRGB[ 21] = TColor::GetColor( 98, 30, 0 );
1050  fRGB[ 22] = TColor::GetColor( 100, 31, 0 );
1051  fRGB[ 23] = TColor::GetColor( 102, 33, 0 );
1052  fRGB[ 24] = TColor::GetColor( 103, 34, 0 );
1053  fRGB[ 25] = TColor::GetColor( 105, 35, 0 );
1054  fRGB[ 26] = TColor::GetColor( 106, 36, 0 );
1055  fRGB[ 27] = TColor::GetColor( 108, 38, 0 );
1056  fRGB[ 28] = TColor::GetColor( 109, 39, 0 );
1057  fRGB[ 29] = TColor::GetColor( 111, 40, 0 );
1058  fRGB[ 30] = TColor::GetColor( 112, 42, 0 );
1059  fRGB[ 31] = TColor::GetColor( 114, 43, 0 );
1060  fRGB[ 32] = TColor::GetColor( 115, 44, 0 );
1061  fRGB[ 33] = TColor::GetColor( 117, 45, 0 );
1062  fRGB[ 34] = TColor::GetColor( 119, 47, 0 );
1063  fRGB[ 35] = TColor::GetColor( 119, 47, 0 );
1064  fRGB[ 36] = TColor::GetColor( 120, 48, 0 );
1065  fRGB[ 37] = TColor::GetColor( 122, 49, 0 );
1066  fRGB[ 38] = TColor::GetColor( 123, 51, 0 );
1067  fRGB[ 39] = TColor::GetColor( 125, 52, 0 );
1068  fRGB[ 40] = TColor::GetColor( 125, 52, 0 );
1069  fRGB[ 41] = TColor::GetColor( 126, 53, 0 );
1070  fRGB[ 42] = TColor::GetColor( 128, 54, 0 );
1071  fRGB[ 43] = TColor::GetColor( 129, 56, 0 );
1072  fRGB[ 44] = TColor::GetColor( 129, 56, 0 );
1073  fRGB[ 45] = TColor::GetColor( 131, 57, 0 );
1074  fRGB[ 46] = TColor::GetColor( 132, 58, 0 );
1075  fRGB[ 47] = TColor::GetColor( 134, 59, 0 );
1076  fRGB[ 48] = TColor::GetColor( 134, 59, 0 );
1077  fRGB[ 49] = TColor::GetColor( 136, 61, 0 );
1078  fRGB[ 50] = TColor::GetColor( 137, 62, 0 );
1079  fRGB[ 51] = TColor::GetColor( 137, 62, 0 );
1080  fRGB[ 52] = TColor::GetColor( 139, 63, 0 );
1081  fRGB[ 53] = TColor::GetColor( 139, 63, 0 );
1082  fRGB[ 54] = TColor::GetColor( 140, 65, 0 );
1083  fRGB[ 55] = TColor::GetColor( 142, 66, 0 );
1084  fRGB[ 56] = TColor::GetColor( 142, 66, 0 );
1085  fRGB[ 57] = TColor::GetColor( 143, 67, 0 );
1086  fRGB[ 58] = TColor::GetColor( 143, 67, 0 );
1087  fRGB[ 59] = TColor::GetColor( 145, 68, 0 );
1088  fRGB[ 60] = TColor::GetColor( 145, 68, 0 );
1089  fRGB[ 61] = TColor::GetColor( 146, 70, 0 );
1090  fRGB[ 62] = TColor::GetColor( 146, 70, 0 );
1091  fRGB[ 63] = TColor::GetColor( 148, 71, 0 );
1092  fRGB[ 64] = TColor::GetColor( 148, 71, 0 );
1093  fRGB[ 65] = TColor::GetColor( 149, 72, 0 );
1094  fRGB[ 66] = TColor::GetColor( 149, 72, 0 );
1095  fRGB[ 67] = TColor::GetColor( 151, 73, 0 );
1096  fRGB[ 68] = TColor::GetColor( 151, 73, 0 );
1097  fRGB[ 69] = TColor::GetColor( 153, 75, 0 );
1098  fRGB[ 70] = TColor::GetColor( 153, 75, 0 );
1099  fRGB[ 71] = TColor::GetColor( 154, 76, 0 );
1100  fRGB[ 72] = TColor::GetColor( 154, 76, 0 );
1101  fRGB[ 73] = TColor::GetColor( 154, 76, 0 );
1102  fRGB[ 74] = TColor::GetColor( 156, 77, 0 );
1103  fRGB[ 75] = TColor::GetColor( 156, 77, 0 );
1104  fRGB[ 76] = TColor::GetColor( 157, 79, 0 );
1105  fRGB[ 77] = TColor::GetColor( 157, 79, 0 );
1106  fRGB[ 78] = TColor::GetColor( 159, 80, 0 );
1107  fRGB[ 79] = TColor::GetColor( 159, 80, 0 );
1108  fRGB[ 80] = TColor::GetColor( 159, 80, 0 );
1109  fRGB[ 81] = TColor::GetColor( 160, 81, 0 );
1110  fRGB[ 82] = TColor::GetColor( 160, 81, 0 );
1111  fRGB[ 83] = TColor::GetColor( 162, 82, 0 );
1112  fRGB[ 84] = TColor::GetColor( 162, 82, 0 );
1113  fRGB[ 85] = TColor::GetColor( 163, 84, 0 );
1114  fRGB[ 86] = TColor::GetColor( 163, 84, 0 );
1115  fRGB[ 87] = TColor::GetColor( 165, 85, 0 );
1116  fRGB[ 88] = TColor::GetColor( 165, 85, 0 );
1117  fRGB[ 89] = TColor::GetColor( 166, 86, 0 );
1118  fRGB[ 90] = TColor::GetColor( 166, 86, 0 );
1119  fRGB[ 91] = TColor::GetColor( 166, 86, 0 );
1120  fRGB[ 92] = TColor::GetColor( 168, 87, 0 );
1121  fRGB[ 93] = TColor::GetColor( 168, 87, 0 );
1122  fRGB[ 94] = TColor::GetColor( 170, 89, 0 );
1123  fRGB[ 95] = TColor::GetColor( 170, 89, 0 );
1124  fRGB[ 96] = TColor::GetColor( 171, 90, 0 );
1125  fRGB[ 97] = TColor::GetColor( 171, 90, 0 );
1126  fRGB[ 98] = TColor::GetColor( 173, 91, 0 );
1127  fRGB[ 99] = TColor::GetColor( 173, 91, 0 );
1128  fRGB[100] = TColor::GetColor( 174, 93, 0 );
1129  fRGB[101] = TColor::GetColor( 174, 93, 0 );
1130  fRGB[102] = TColor::GetColor( 176, 94, 0 );
1131  fRGB[103] = TColor::GetColor( 176, 94, 0 );
1132  fRGB[104] = TColor::GetColor( 177, 95, 0 );
1133  fRGB[105] = TColor::GetColor( 177, 95, 0 );
1134  fRGB[106] = TColor::GetColor( 179, 96, 0 );
1135  fRGB[107] = TColor::GetColor( 179, 96, 0 );
1136  fRGB[108] = TColor::GetColor( 180, 98, 0 );
1137  fRGB[109] = TColor::GetColor( 182, 99, 0 );
1138  fRGB[110] = TColor::GetColor( 182, 99, 0 );
1139  fRGB[111] = TColor::GetColor( 183, 100, 0 );
1140  fRGB[112] = TColor::GetColor( 183, 100, 0 );
1141  fRGB[113] = TColor::GetColor( 185, 102, 0 );
1142  fRGB[114] = TColor::GetColor( 185, 102, 0 );
1143  fRGB[115] = TColor::GetColor( 187, 103, 0 );
1144  fRGB[116] = TColor::GetColor( 187, 103, 0 );
1145  fRGB[117] = TColor::GetColor( 188, 104, 0 );
1146  fRGB[118] = TColor::GetColor( 188, 104, 0 );
1147  fRGB[119] = TColor::GetColor( 190, 105, 0 );
1148  fRGB[120] = TColor::GetColor( 191, 107, 0 );
1149  fRGB[121] = TColor::GetColor( 191, 107, 0 );
1150  fRGB[122] = TColor::GetColor( 193, 108, 0 );
1151  fRGB[123] = TColor::GetColor( 193, 108, 0 );
1152  fRGB[124] = TColor::GetColor( 194, 109, 0 );
1153  fRGB[125] = TColor::GetColor( 196, 110, 0 );
1154  fRGB[126] = TColor::GetColor( 196, 110, 0 );
1155  fRGB[127] = TColor::GetColor( 197, 112, 0 );
1156  fRGB[128] = TColor::GetColor( 197, 112, 0 );
1157  fRGB[129] = TColor::GetColor( 199, 113, 0 );
1158  fRGB[130] = TColor::GetColor( 200, 114, 0 );
1159  fRGB[131] = TColor::GetColor( 200, 114, 0 );
1160  fRGB[132] = TColor::GetColor( 202, 116, 0 );
1161  fRGB[133] = TColor::GetColor( 202, 116, 0 );
1162  fRGB[134] = TColor::GetColor( 204, 117, 0 );
1163  fRGB[135] = TColor::GetColor( 205, 118, 0 );
1164  fRGB[136] = TColor::GetColor( 205, 118, 0 );
1165  fRGB[137] = TColor::GetColor( 207, 119, 0 );
1166  fRGB[138] = TColor::GetColor( 208, 121, 0 );
1167  fRGB[139] = TColor::GetColor( 208, 121, 0 );
1168  fRGB[140] = TColor::GetColor( 210, 122, 0 );
1169  fRGB[141] = TColor::GetColor( 211, 123, 0 );
1170  fRGB[142] = TColor::GetColor( 211, 123, 0 );
1171  fRGB[143] = TColor::GetColor( 213, 124, 0 );
1172  fRGB[144] = TColor::GetColor( 214, 126, 0 );
1173  fRGB[145] = TColor::GetColor( 214, 126, 0 );
1174  fRGB[146] = TColor::GetColor( 216, 127, 0 );
1175  fRGB[147] = TColor::GetColor( 217, 128, 0 );
1176  fRGB[148] = TColor::GetColor( 217, 128, 0 );
1177  fRGB[149] = TColor::GetColor( 219, 130, 0 );
1178  fRGB[150] = TColor::GetColor( 221, 131, 0 );
1179  fRGB[151] = TColor::GetColor( 221, 131, 0 );
1180  fRGB[152] = TColor::GetColor( 222, 132, 0 );
1181  fRGB[153] = TColor::GetColor( 224, 133, 0 );
1182  fRGB[154] = TColor::GetColor( 224, 133, 0 );
1183  fRGB[155] = TColor::GetColor( 225, 135, 0 );
1184  fRGB[156] = TColor::GetColor( 227, 136, 0 );
1185  fRGB[157] = TColor::GetColor( 227, 136, 0 );
1186  fRGB[158] = TColor::GetColor( 228, 137, 0 );
1187  fRGB[159] = TColor::GetColor( 230, 138, 0 );
1188  fRGB[160] = TColor::GetColor( 230, 138, 0 );
1189  fRGB[161] = TColor::GetColor( 231, 140, 0 );
1190  fRGB[162] = TColor::GetColor( 233, 141, 0 );
1191  fRGB[163] = TColor::GetColor( 233, 141, 0 );
1192  fRGB[164] = TColor::GetColor( 234, 142, 0 );
1193  fRGB[165] = TColor::GetColor( 236, 144, 0 );
1194  fRGB[166] = TColor::GetColor( 236, 144, 0 );
1195  fRGB[167] = TColor::GetColor( 238, 145, 0 );
1196  fRGB[168] = TColor::GetColor( 239, 146, 0 );
1197  fRGB[169] = TColor::GetColor( 241, 147, 0 );
1198  fRGB[170] = TColor::GetColor( 241, 147, 0 );
1199  fRGB[171] = TColor::GetColor( 242, 149, 0 );
1200  fRGB[172] = TColor::GetColor( 244, 150, 0 );
1201  fRGB[173] = TColor::GetColor( 244, 150, 0 );
1202  fRGB[174] = TColor::GetColor( 245, 151, 0 );
1203  fRGB[175] = TColor::GetColor( 247, 153, 0 );
1204  fRGB[176] = TColor::GetColor( 247, 153, 0 );
1205  fRGB[177] = TColor::GetColor( 248, 154, 0 );
1206  fRGB[178] = TColor::GetColor( 250, 155, 0 );
1207  fRGB[179] = TColor::GetColor( 251, 156, 0 );
1208  fRGB[180] = TColor::GetColor( 251, 156, 0 );
1209  fRGB[181] = TColor::GetColor( 253, 158, 0 );
1210  fRGB[182] = TColor::GetColor( 255, 159, 0 );
1211  fRGB[183] = TColor::GetColor( 255, 159, 0 );
1212  fRGB[184] = TColor::GetColor( 255, 160, 0 );
1213  fRGB[185] = TColor::GetColor( 255, 161, 0 );
1214  fRGB[186] = TColor::GetColor( 255, 163, 0 );
1215  fRGB[187] = TColor::GetColor( 255, 163, 0 );
1216  fRGB[188] = TColor::GetColor( 255, 164, 0 );
1217  fRGB[189] = TColor::GetColor( 255, 165, 0 );
1218  fRGB[190] = TColor::GetColor( 255, 167, 0 );
1219  fRGB[191] = TColor::GetColor( 255, 167, 0 );
1220  fRGB[192] = TColor::GetColor( 255, 168, 0 );
1221  fRGB[193] = TColor::GetColor( 255, 169, 0 );
1222  fRGB[194] = TColor::GetColor( 255, 169, 0 );
1223  fRGB[195] = TColor::GetColor( 255, 170, 0 );
1224  fRGB[196] = TColor::GetColor( 255, 172, 0 );
1225  fRGB[197] = TColor::GetColor( 255, 173, 0 );
1226  fRGB[198] = TColor::GetColor( 255, 173, 0 );
1227  fRGB[199] = TColor::GetColor( 255, 174, 0 );
1228  fRGB[200] = TColor::GetColor( 255, 175, 0 );
1229  fRGB[201] = TColor::GetColor( 255, 177, 0 );
1230  fRGB[202] = TColor::GetColor( 255, 178, 0 );
1231  fRGB[203] = TColor::GetColor( 255, 179, 0 );
1232  fRGB[204] = TColor::GetColor( 255, 181, 0 );
1233  fRGB[205] = TColor::GetColor( 255, 181, 0 );
1234  fRGB[206] = TColor::GetColor( 255, 182, 0 );
1235  fRGB[207] = TColor::GetColor( 255, 183, 0 );
1236  fRGB[208] = TColor::GetColor( 255, 184, 0 );
1237  fRGB[209] = TColor::GetColor( 255, 187, 7 );
1238  fRGB[210] = TColor::GetColor( 255, 188, 10 );
1239  fRGB[211] = TColor::GetColor( 255, 189, 14 );
1240  fRGB[212] = TColor::GetColor( 255, 191, 18 );
1241  fRGB[213] = TColor::GetColor( 255, 192, 21 );
1242  fRGB[214] = TColor::GetColor( 255, 193, 25 );
1243  fRGB[215] = TColor::GetColor( 255, 195, 29 );
1244  fRGB[216] = TColor::GetColor( 255, 197, 36 );
1245  fRGB[217] = TColor::GetColor( 255, 198, 40 );
1246  fRGB[218] = TColor::GetColor( 255, 200, 43 );
1247  fRGB[219] = TColor::GetColor( 255, 202, 51 );
1248  fRGB[220] = TColor::GetColor( 255, 204, 54 );
1249  fRGB[221] = TColor::GetColor( 255, 206, 61 );
1250  fRGB[222] = TColor::GetColor( 255, 207, 65 );
1251  fRGB[223] = TColor::GetColor( 255, 210, 72 );
1252  fRGB[224] = TColor::GetColor( 255, 211, 76 );
1253  fRGB[225] = TColor::GetColor( 255, 214, 83 );
1254  fRGB[226] = TColor::GetColor( 255, 216, 91 );
1255  fRGB[227] = TColor::GetColor( 255, 219, 98 );
1256  fRGB[228] = TColor::GetColor( 255, 221, 105 );
1257  fRGB[229] = TColor::GetColor( 255, 223, 109 );
1258  fRGB[230] = TColor::GetColor( 255, 225, 116 );
1259  fRGB[231] = TColor::GetColor( 255, 228, 123 );
1260  fRGB[232] = TColor::GetColor( 255, 232, 134 );
1261  fRGB[233] = TColor::GetColor( 255, 234, 142 );
1262  fRGB[234] = TColor::GetColor( 255, 237, 149 );
1263  fRGB[235] = TColor::GetColor( 255, 239, 156 );
1264  fRGB[236] = TColor::GetColor( 255, 240, 160 );
1265  fRGB[237] = TColor::GetColor( 255, 243, 167 );
1266  fRGB[238] = TColor::GetColor( 255, 246, 174 );
1267  fRGB[239] = TColor::GetColor( 255, 248, 182 );
1268  fRGB[240] = TColor::GetColor( 255, 249, 185 );
1269  fRGB[241] = TColor::GetColor( 255, 252, 193 );
1270  fRGB[242] = TColor::GetColor( 255, 253, 196 );
1271  fRGB[243] = TColor::GetColor( 255, 255, 204 );
1272  fRGB[244] = TColor::GetColor( 255, 255, 207 );
1273  fRGB[245] = TColor::GetColor( 255, 255, 211 );
1274  fRGB[246] = TColor::GetColor( 255, 255, 218 );
1275  fRGB[247] = TColor::GetColor( 255, 255, 222 );
1276  fRGB[248] = TColor::GetColor( 255, 255, 225 );
1277  fRGB[249] = TColor::GetColor( 255, 255, 229 );
1278  fRGB[250] = TColor::GetColor( 255, 255, 233 );
1279  fRGB[251] = TColor::GetColor( 255, 255, 236 );
1280  fRGB[252] = TColor::GetColor( 255, 255, 240 );
1281  fRGB[253] = TColor::GetColor( 255, 255, 244 );
1282  fRGB[254] = TColor::GetColor( 255, 255, 247 );
1283  fRGB[255] = TColor::GetColor( 255, 255, 255 );
1284 
1285  fNcolor = 256;
1286  for (int i=0; i<256; ++i) fColors[i] = fRGB[255-i];
1287  }
1288 }// namespace
1289 
1290 
Float_t x
Definition: compare.C:6
TRandom r
Definition: spectrum.C:23
Blue to orange transition.
Definition: ColorScale.h:29
void MakeBlueToGreen()
Definition: ColorScale.cxx:925
According to log(x)
Definition: ColorScale.h:39
Definition: test07.cc:35
Useful for sequential data.
Definition: ColorScale.h:31
Sequential data with focus in center of scale.
Definition: ColorScale.h:32
Blue to green transition.
Definition: ColorScale.h:28
void SetOverFlowColor(int c)
Definition: ColorScale.cxx:99
ROY G. BIV (default)
Definition: ColorScale.h:17
Define a color scale for displaying numeric data.
void MakeBlueToOrange()
Definition: ColorScale.cxx:952
bool InBounds(double x) const
Definition: ColorScale.cxx:113
int GetColor(double x) const
Definition: ColorScale.cxx:126
Manage all things related to colors for the event display.
Definition: test07.cc:35
int fColors[256]
How many colors in scale?
Definition: ColorScale.h:88
TFile f
Definition: plotHisto.C:6
Linearly (default)
Definition: ColorScale.h:38
double fXhi
Numeric value at low end of scale.
Definition: ColorScale.h:85
Double_t scale
Definition: plot.C:24
A color scale primarily in greens.
Definition: ColorScale.h:25
void MakeHSVScale(int n, double h1, double h2, double vs1, double vs2)
Make a color scale of n colors ranging between two points in an HSV color space.
Definition: ColorScale.cxx:204
A color scale primarily in reds.
Definition: ColorScale.h:20
static int Palette(const std::string &nm)
Definition: ColorScale.cxx:17
static int Scale(const std::string &nm)
Definition: ColorScale.cxx:32
int fNcolor
Linear? Log? Sqrt?
Definition: ColorScale.h:87
A color scale primarily in blues.
Definition: ColorScale.h:26
Blue = cold, red = hot.
Definition: ColorScale.h:21
TH1F * h2
Definition: plot.C:44
Rainbow with high and low flipped.
Definition: ColorScale.h:18
void HSVtoRGB(double h, double s, double v, double *r, double *g, double *b) const
Definition: ColorScale.cxx:163
Green to magenta transition.
Definition: ColorScale.h:30
ColorScale(double xlo, double xhi, int which=kRainbow, int scale=kLinear, int n=40, double h1=0, double h2=0, double v1=0, double v2=0)
Definition: ColorScale.cxx:57
void MakeGreenToMagenta()
Definition: ColorScale.cxx:848
void MakeBlueToRedII()
Definition: ColorScale.cxx:908
A color scale from dark blue (very cold) to red (hot) passing through yellow.
Definition: ColorScale.h:22
void SetUnderFlowColor(int c)
Definition: ColorScale.cxx:95
int operator()(double x) const
Definition: ColorScale.cxx:148
TH1F * h1
Definition: plot.C:41
void MakeBrownToBlue()
Definition: ColorScale.cxx:983
Char_t n[5]
int fUnderFlowColor
List of ROOT color indicies.
Definition: ColorScale.h:89
int fScale
Numeric value at high end of scale.
Definition: ColorScale.h:86
int fOverFlowColor
Color to use for under flows.
Definition: ColorScale.h:90
Linearized gray scale.
Definition: ColorScale.h:19
A color scale primarily in reds.
Definition: ColorScale.h:24
hh[ixs]
Definition: PlotSingle.C:6
A color scale from light to "burned".
Definition: ColorScale.h:23