ATLAS Offline Software
Functions | Variables
BadCellsFromCOOLPrint Namespace Reference

Functions

def set_palette (ncontours=50)
 

Variables

 f
 
 c1
 
 h
 

Function Documentation

◆ set_palette()

def BadCellsFromCOOLPrint.set_palette (   ncontours = 50)
Set a color palette from a given RGB list
stops, red, green and blue should all be lists of the same length
see set_decent_colors for an example

Definition at line 22 of file BadCellsFromCOOLPrint.py.

22 def set_palette(ncontours=50):
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"""
26 
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]
31 
32  s = array('d', stops)
33  r = array('d', red)
34  g = array('d', green)
35  b = array('d', blue)
36 
37  npoints = len(s)
38  TColor.CreateGradientColorTable(npoints, s, r, g, b, ncontours)
39  gStyle.SetNumberContours(ncontours)
40 
41 

Variable Documentation

◆ c1

BadCellsFromCOOLPrint.c1

Definition at line 44 of file BadCellsFromCOOLPrint.py.

◆ f

BadCellsFromCOOLPrint.f

Definition at line 42 of file BadCellsFromCOOLPrint.py.

◆ h

BadCellsFromCOOLPrint.h

Definition at line 50 of file BadCellsFromCOOLPrint.py.

array
BadCellsFromCOOLPrint.set_palette
def set_palette(ncontours=50)
Definition: BadCellsFromCOOLPrint.py:22