8 """Set a color palette from a given RGB list
9 stops, red, green and blue should all be lists of the same length
10 see set_decent_colors for an example"""
12 if name ==
"gray" or name ==
"grayscale":
13 stops = [0.00, 0.34, 0.61, 0.84, 1.00]
14 red = [1.00, 0.84, 0.61, 0.34, 0.00]
15 green = [1.00, 0.84, 0.61, 0.34, 0.00]
16 blue = [1.00, 0.84, 0.61, 0.34, 0.00]
21 stops = [0.00, 0.34, 0.61, 0.84, 1.00]
22 red = [0.00, 0.00, 0.87, 1.00, 0.51]
23 green = [0.00, 0.81, 1.00, 0.20, 0.00]
24 blue = [0.51, 1.00, 0.12, 0.00, 0.00]
32 TColor.CreateGradientColorTable(npoints, s, r, g, b, ncontours)
33 gStyle.SetNumberContours(ncontours)