| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
param.parameterized.Parameterized --+
|
Palette
Each palette has 3*256 values that are keyed by an index. This base class takes in a list of 256 triples.
A Palette object has 256 triples of RGB values ranging from 0 ... 255. The purpose of the class is to maintain an accurate palette conversion between a number (0..255) and an RGB triple even as the background of the plots change. If the background is Black, then the 0 intensity should often be 0, but if the background of the Plot should be white, then the 0 intensity should probably be 255. This automatic updating is possible through the use of Dynamic Parameters, and lambda functions.
This class stores a passed in variable named colors. If the variable is a lambda function that gives the 256 triples, then it will evaluate the lambda each time a datarequest is made. If it is a static list, then the palette is fixed. It may be possible to make Palette a 'pure' Dynamic parameter, with different types of palettes setting the lambda. More power to you if you do that.
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
background = param.Dynamic(default= BLACK_BACKGROUND)
|
|||
colors_ = param.Dynamic(default= F())
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 12 22:26:35 2008 | http://epydoc.sourceforge.net |