JMSL Chart Programmer’s Guide
Color
Many color names are defined in JMSL. You can follow this link to a defined set of color names and RGB values beyond the fields already provided in the Java java.awt.Color class. The color name/ RGB Value associations are consistent with HTML4 color designations. All class attributes that have a method to set color (i.e. line, marker, fill, …) and take a string argument use the AbstractChartNode.parseColor(string) method. Therefore the color associations in color names and RGB values are used.
Colormaps
Colormaps are mappings from [0,1] to colors. They are a one-dimensional parameterized path through the color cube. For an example of their use, see Heatmap.
A number of colormaps are predefined in the Colormap class. It is also possible to create new custom colormaps.
The predefined colormaps are listed in the table below.
Fields
Description
Light red to dark red
Light green to dark green
Light blue to dark blue
Black and white linear
Blue/White
Green/Red/Blue/White
Red Temperature
Blue/Green/Red/Yellow
Standard Gamma
Prism
Red/Purple
Green/White Linear
Green/White Exponential
Green/Pink
Blue/Red
Spectral
White/Black Linear