11 from array
import array
13 gStyle.SetFrameBorderMode(0)
14 gStyle.SetCanvasBorderMode(0)
15 gStyle.SetPadBorderMode(0)
17 gStyle.SetCanvasColor(0)
18 gStyle.SetStatColor(0)
19 gStyle.SetFrameFillColor(10)
20 gStyle.SetTitleFillColor(10)
21 gStyle.SetFillColor(10)
23 """Set a color palette from a given RGB list
24 stops, red, green and blue should all be lists of the same length
25 see set_decent_colors for an example"""
27 stops = [0.00, 0.25, 0.75, 1.00]
28 red = [0.00, 1.00, 1.00, 1.00]
29 green = [1.00, 1.00, 0.70, 0.00]
30 blue = [0.00, 0.00, 0.00, 0.00]
38 TColor.CreateGradientColorTable(npoints, s, r, g, b, ncontours)
39 gStyle.SetNumberContours(ncontours)
42 f = TFile(
'tileBadCells.root')
44 c1 = TCanvas(
"c1",
"c1",0,0,700,600)
45 for cell
in [
'',
'A',
'BC',
'D',
'Gap']:
50 h = f.Get(
'm_h_badCell'+cell)
53 c1.SetFrameFillColor(kGreen)
56 h.GetXaxis().SetTitleOffset(0.8)
57 h.GetYaxis().SetTitleOffset(0.8)
60 c1.SaveAs(
"tileBadCells%s.png" % cell)