Difference between revisions of "Graph SymbolSeq"

 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[category:System Variables]]
+
[[Category:System Variables]]
 +
[[Category: Graphs]]
  
= SysVar Graph_SymbolSeq =
+
== SysVar Graph_SymbolSeq ==
  
This system variable is can be used to change the order of the symbol shapes that are used when graphing. There is currently no GUI for changing this, so the setting must be set manually through typescript, or by using Analytica code (e.g., from a button script) to change the settings.
+
This system variable specifies the sequence of symbol shapes used in graphs. Each symbol is specified by a number from 1 to 13, as shown below. Analytica does not yet offer a graphical interface to access it. You can only set it via the Typescript window, or in a function called from a Button script.  
  
If you set the system variable itself, the symbol sequence will be the global default.
+
If you set the system variable, [[Graph_SymbolSeq]], itself, it will control the global default for all graphs.  You can specify the symbol sequence for a single variable by assigning a tuple of symbol numbers to Graph_SymbolSeq in the [[GraphSetup]] attribute of the variable. You can also specify the symbol sequence for a graph template by adding the assignment in the ''GraphSetup'' attribute of the template.
  
By placing the setting in the GraphSetup attribute of a graph template, you can define a symbol sequence that applies only to results that use that graph template.
+
The definition must be a tuple of integers between 1 and 13.  You can do this by typing this into the [[Typescript]]:
 +
:<code>Graph_SymbolSeq: [9, 8, 10, 11, 12]</code>
  
If you place the setting in the GraphSetup attribute of an individual variable, the sequence will be used only for that result.
+
This example specifies only 5 symbols. A graph needing more than 5 symbols will repeat after the first 5.  
  
The attribute should be set to a tuple of integers.  From typescript, this is done as in this example:
+
The default sequence is equivalent to:
Graph_SymbolSeq : [ 9, 8, 10, 11, 12 ]
+
:<code>Graph_SymbolSeq: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]</code>
  
In this example, only 5 symbols would be used - if more than 5 items appear in the symbol key, the symbol shape repeats after each fifth item.
+
Analytica provides 13 built-in symbols, with this map from number to symbol:
  
Analytica 4.0 provides 13 built-in symbols.  You use the integer value shown as follows as the value in the tuple to select the given shape.
+
:{|class="wikitable"
 
+
! Number !! Symbol
{|
+
|-
! 1 || solid circle
+
! 1  
 +
| solid circle
 
|-
 
|-
! 2 || solid square
+
! 2  
 +
| solid square
 
|-
 
|-
! 3 || solid diamond
+
! 3  
 +
| solid diamond
 
|-
 
|-
! 4 || solid upright triangle
+
! 4  
 +
| solid upright triangle
 
|-
 
|-
! 5 || X
+
! 5  
 +
| X
 
|-  
 
|-  
! 6 || +
+
! 6  
 +
| +
 
|-
 
|-
! 7 || Solid inverted triangle
+
! 7  
 +
| Solid inverted triangle
 
|-
 
|-
! 8 || Hollow square
+
! 8  
 +
| Hollow square
 
|-
 
|-
! 9 || Hollow diamond
+
! 9  
 +
| Hollow diamond
 
|-
 
|-
! 10 || Hollow upright triangle
+
! 10  
 +
| Hollow upright triangle
 
|-
 
|-
! 11 || Hollow circle
+
! 11  
 +
| Hollow circle
 
|-
 
|-
! 12 || Hollow inverted triangle
+
! 12  
 +
| Hollow inverted triangle
 
|-
 
|-
! 13 || *
+
! 13  
 +
| *
 
|}
 
|}
  
= See Also =
+
== See Also ==
 
 
 
* [[Graph_ColorSeq]]
 
* [[Graph_ColorSeq]]
 +
* [[Graph settings]]
 +
* [[Graph Setting Associations]]
 +
* [[Typescript]]

Latest revision as of 18:47, 23 June 2016


SysVar Graph_SymbolSeq

This system variable specifies the sequence of symbol shapes used in graphs. Each symbol is specified by a number from 1 to 13, as shown below. Analytica does not yet offer a graphical interface to access it. You can only set it via the Typescript window, or in a function called from a Button script.

If you set the system variable, Graph_SymbolSeq, itself, it will control the global default for all graphs. You can specify the symbol sequence for a single variable by assigning a tuple of symbol numbers to Graph_SymbolSeq in the GraphSetup attribute of the variable. You can also specify the symbol sequence for a graph template by adding the assignment in the GraphSetup attribute of the template.

The definition must be a tuple of integers between 1 and 13. You can do this by typing this into the Typescript:

Graph_SymbolSeq: [9, 8, 10, 11, 12]

This example specifies only 5 symbols. A graph needing more than 5 symbols will repeat after the first 5.

The default sequence is equivalent to:

Graph_SymbolSeq: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]

Analytica provides 13 built-in symbols, with this map from number to symbol:

Number Symbol
1 solid circle
2 solid square
3 solid diamond
4 solid upright triangle
5 X
6 +
7 Solid inverted triangle
8 Hollow square
9 Hollow diamond
10 Hollow upright triangle
11 Hollow circle
12 Hollow inverted triangle
13 *

See Also

Comments


You are not allowed to post comments.