CHARTLOOK Subcommand (IGRAPH command)
CHARTLOOK
identifies a template file containing specifications concerning
the initial visual properties of a chart, such as fill, color, font,
style, and symbol. By specifying a template, you can control cosmetic
properties that are not explicitly available as syntax keywords.
Valid template files have an .sgt extension (old ChartLook .clo files are no longer
supported). Files designated on CHARTLOOK
must either be included with the software
or created in the Chart Editor by saving a chart as a template. For more
information about templates, see Using Chart Templates.
You can specify multiple templates by listing them
in square brackets and separating each file name with a space (for
example, CHARTLOOK=['template1.sgt' 'template2.sgt']
). Templates are applied in the order in which they appear. If any
of the settings in multiple templates conflict, the settings in the
last template override the conflicting settings in previous templates.
A template contains values for the following properties:
- Color sequence for categorical color legends
- Color range for scale color legends
- Line style sequence for categorical style legends
- Symbol style sequence for categorical style legends
- Categorical legend fill styles
- Categorical symbol size sequence for categorical size legends
- Symbol size sequence for scale size sequences
- Categorical line weight sequence for categorical size legends
- Font, size, alignment, bold, and italic properties for text objects
- Fill and border for filled objects
- Style, weight, and color for line objects
- Font, shape, size, and color for symbol objects
- Style, weight, and color for visual connectors
- Axis properties: axis line style, color, and weight; major tick shape, location, color, and size
Example
IGRAPH
/VIEWNAME='Slide 1'
/X1=VAR(sales95) TYPE=SCALE
/Y=VAR(sales96) TYPE=SCALE
/X2=VAR(region) TYPE=CATEGORICAL
/COORDINATE=THREE
/POINTLABEL=VAR(division) NONE
/TITLE='Scatterplot Comparing Regions'
/SUBTITLE='Predicting 1996 Sales\nfrom 1995 Sales'
/CHARTLOOK='Classic.sgt'
/SCATTER.
-
VIEWNAME
assigns the name Slide 1 to the chart. The outline pane of the Viewer uses this name for the chart. - Points in the chart are labeled with the values of division. Initially, all labels are off. Labels for individual points can be turned on interactively after creating the chart.
-
TITLE
andSUBTITLE
define text to appear of the plot. The subtitle contains a carriage return between Sales and from. - The appearance of the chart is defined in the Classic template.