Palette

Palette is a tool to generate colors for various Graphs plots and legends

The DIRAC Graphs package is derived from the GraphTool plotting package of the CMS/Phedex Project by … <to be added>

class DIRAC.Core.Utilities.Graphs.Palette.Palette(palette={}, colors=[])

Bases: object

__init__(palette={}, colors=[])

x.__init__(…) initializes x; see help(type(x)) for signature

addPalette(palette)
generateColor(label)
getColor(label)
setColor(label, color)
setPalette(palette)