Graph ColorSeq

Revision as of 20:48, 20 February 2007 by Lchrisman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


SysVar Graph_ColorSeq

The system variable defines the sequence of colors used for curves in a graph. If the system is not set, Analytica uses an internal default.

The system variable must be a tuple containing 3 numbers for each color defined. The total length of the tuple should therefore be a multiple of 3. The numbers in the tuple are the Red, Green and Blue intensities of each color in succession. Each intensity is defined on a scale from 0 (totally off) to 65535 (totally on). (Note: Analytica will also accept -1 for fully on, treating negative values as 65535-x).

There is currently no GUI for setting the color sequence, so this must be done manually via typescript. The color sequence can be defined separately for a graph template, so that the color sequence applies to any variable that uses that template.

The following statement would define a color sequence with 7 distinct colors:

Graph_ColorSeq : [ 65535,0,0, 0,65535,0, 0,0,65535, 65535,65535,0, 65535,0,65535, 0,65535,65535, 0,0,0 ]

Here the colors are, in sequence: red, green, blue, yellow, magenta, aqua, black.

To set a global default, set the system variable. To set a color sequence that applies only to a graph template, add the line to set the system variable to the template's graphSetup attribute. For example:

( Graph_ColorSeq of MyTempl := (Graph_ColorSeq of MyTempl) & chr(13) 
      & "Graph_ColorSeq := [65535,0,0, 0,65535,0, 0,0,65535]" )

To set a graph color sequence that applies to a single graph, insert the setting in this same fashion in the variable's graphSetup attribute.

See Also

Comments


You are not allowed to post comments.