next up previous
Next: LEAST SQUARES REFINEMENT USING CCSL Up: INPUT AND OUTPUT OF Previous: Printed Output Files: Use

Subsections

Graphical Output

The form of graphical output is very dependent on the hardware used to produce it and the local software used to drive that hardware. CCSL addresses this problem by chanelling all calls to the plotter hardware through a single SUBROUTINE PIGLET.

There is a separate section of the CCSL Master File which contains various PIGLETs which have been written to drive different devices, such as Tektronix 4010 terminals and BENSON plotters. Special PIGLETs for GKS, PostScript and PGPLOT interfaces are also included. A user who wishes to compile a program which uses CCSL graphics should extract the most suitable SUBROUTINE PIGLET from the Master File, modify it if necessary, and include it in his link statement together with any graphics libraries called by this particular PIGLET.

In many cases the output will drive a graphics terminal directly and local system facilities will be used to obtain hard copies. Output files destined for centralised plotters will usually be created and named by the local system software.

When the graphical output is sent directly to a file by the CCSL graphics interface, for instance when using the PostScript or PGPLOT PIGLETs the output file will be named by CCSL, usually with the name of the program, a sequence number and an extension approriate to the type of output (e.g. .PS for a PostScript file).

Plotting in colour

16 different colour names are recognised by CCSL using the first 3 letters of their names (case insensitive), they are:

Number      Name Red Green Blue
0   White 1.00 1.00 1.00
1   Black 0.00 0.00 0.00
2   Red 1.00 0.00 0.00
3   Green 0.00 1.00 0.00
4   Blue 0.00 0.00 1.00
5   Cyan 0.00 1.00 1.00
6   Magenta 1.00 0.00 1.00
7   Yellow 1.00 1.00 0.00
8   Orange 1.00 0.50 0.00
9   SpringGreen 0.50 1.00 0.00
10   SeaGreen 0.00 1.00 0.50
11   Aqua 0.00 0.50 1.00
12   Purple 0.50 0.00 1.00
13   Pink 1.00 0.00 0.50
14   DkGrey 0.33 0.33 0.33
15   LtGrey 0.66 0.66 0.66

The function LCOLPG will convert a colour name to a colour number recognised by PIGLET.

Plotting Symbols

Symbols in CCSL are plotted using the subroutine KANGA3 which recognises 9 different symbol shapes and two fill types: filled and open. The full list of symbols with their names is given below. The names are recognised by case insensitive matching of the first 6 letters; and the fill property by case insensitive matching of the first 4 letters in filled or open.

Number      Name Description Filled/Open
1 square Square Yes
2 trianup Triangle vertex up Yes
3 triandown Triangle vertex down Yes
4 circle A hexagon Yes
5 xcross Cross with diagonal members No
6 plussign Cross with hor. and vert. bars No
7 eggtimer Xcross with ends closed Yes
8 bowtie Eggtimer rotated 90 degreep Yes
9 diamond Square rotated 45 degrees Yes
The function LSYMPG will convert a symbol name and fill type into a symbol number for input to KANGA3.


next up previous
Next: LEAST SQUARES REFINEMENT USING CCSL Up: INPUT AND OUTPUT OF Previous: Printed Output Files: Use
P.J. Brown - Institut Laue Langevin, Grenoble, FRANCE. e-mail brown@ill.fr