Next: Postscript Format
Up: Plotfile Format
Previous: Plotfile Format
The neutral plotfile generated by FEMGV is described below.
Each instruction (except End plot) will consist of two or more records; a header record containing the instruction code number, followed by the data record(s) containing the data for the instruction.
The instruction code numbers and the contents of the data records are as follows:
| Code | Function |
| 1 | New plot |
| 2 | Draw line (pen up) |
| 3 | Draw line (pen down) |
| 4 | Select line style |
| 5 | Select colour |
| 6 | Draw characters |
| 7 | Colour fill a polygon |
| 8 | End plot |
| 9 | Draw a poly-line |
| 10 | Context |
| 11 | Draw a symbol |
| 12 | Define a colour |
| 13 | Define the plotting range |
| 14 | Define a character size |
| 15 | Select a character size |
All header records can be read as follows:
READ( ) ICODE, NRECS
FORMAT(2I2)
Where:
| ICODE | = | instruction code number |
| NRECS | = | number of data records to be read |
The data records associated with each instruction code are as follows:
| Code | Contents of Data Record | Format |
| 1 | - Prog, Vers, Level, Ncols | 4I4 - see note 5 |
| - Title of Plot | 80A1 | |
| 2 | - X co-ordinate | 2I4 |
| - Y co-ordinate | ||
| 3 | - X co-ordinate | 2I4 |
| - Y co-ordinate | ||
| 4 | - Line style | I2 |
| = 1 for full line | ||
| = 2 for short dashed line | ||
| 5 | - Colour No. | 2I2 |
| - Palette No. | ||
| 6 | - Number of characters | I2 |
| - Character string | 80A1 -two records | |
| 7 | - Number of vertices | I4 |
| - X co-ords of vertices | 20I4 | |
| - Y co-ords of vertices | -continued as required | |
| 8 | -- | -- |
| 9 | - Number of vertices | I4 |
| - X co-ords of vertices | 20I4 | |
| - Y co-ords of vertices | -continued as required | |
| 10 | - Context code | I2 |
| = 1 for Error messages (not plotted) | ||
| = 2 for the Model | ||
| = 3 for the Frame | ||
| = 4 for the Command Echo (not plotted) | ||
| = 5 for the Command Menu (not plotted) | ||
| = 6 for Table headers | ||
| = 7 for Table contents | ||
| = 8 for Input buffer comment (not plotted) | ||
| = 9 for Results presentation (except Tables) | ||
| = 10 for the Contour legend | ||
| = 11 for the Results Monitor including Text | ||
| = 12 for Mesh labels | ||
| = 13 for the Axes | ||
| = 14 for the Cursor echo (not plotted) | ||
| = 15 for Program Status Monitor and Help info. | ||
| = 16 for added Pointers and Text Annotation | ||
| Code | Contents of Data Record | Format |
| 11 | - Symbol number | I2 |
| = 1 for plus sign | ||
| = 2 for asterisk | ||
| = 3 for cross | ||
| = 4 for square | ||
| = 5 for diamond | ||
| = 6 for crossed square | ||
| = 7 for circle | ||
| 12 | - Colour No. | 3I2 |
| - Palette No. | ||
| - Definition Type No. | ||
| = 1 for RGB definition : | ||
| - Setting of Red Gun 0-9999 | 3I4 | |
| - Setting of Green Gun 0-9999 | ||
| - Setting of Blue Gun 0-9999 | ||
| 13 | - Min X 0-9999 | 4I4 |
| - Max X 0-9999 | ||
| - Min Y 0-9999 | ||
| - Max Y 0-9999 | ||
| 14 | - character size code | I2,2I4,I2 |
| - X width character Cell 0-9999 | ||
| - Y height character Cell 0-9999 | ||
| - character style | ||
| 15 | - character size code | I2 |
Notes:
| All Palettes : | Master colours |
| 1 | White |
| 2 | Red |
| 3 | Orange |
| 4 | Yellow |
| 5 | Green |
| 6 | Blue |
| 7 | Violet |
| 8 | Black |
Palette -1 : Contouring colours :
| 9 | Very Dark Blue |
| 10 | Dark Blue |
| 11 | Blue |
| 12 | Light Blue |
| 13 | Very Light Blue |
| 14 | Blue - Green |
| 15 | Green |
| 16 | Yellow - Green |
| 17 | Yellow |
| 18 | Yellow - Orange |
| 19 | Orange |
| 20 | Red - Orange |
| 21 | Red |
| 22 | Bright Red |
Palette -2 : Default (reduced) shading colours (Blue light) :
| for a 256 colour device use palette 8 : | |
| for a 16 colour device these may be mapped as below : |
| 9 | Very Dark Blue - e.g. palette 1 colour 9 |
| 10 | Very Dark Blue - e.g. palette 1 colour 9 |
| 11 | Very Dark Blue - e.g. palette 1 colour 9 |
| 12 | Dark Blue - e.g. palette 1 colour 10 |
| 13 | Dark Blue - e.g. palette 1 colour 10 |
| 14 | Dark Blue - e.g. palette 1 colour 10 |
| 15 | Blue - e.g. palette 1 colour 11 |
| 16 | Blue - e.g. palette 1 colour 11 |
| 17 | Blue - e.g. palette 1 colour 11 |
| 18 | Light Blue - e.g. palette 1 colour 12 |
| 19 | Light Blue - e.g. palette 1 colour 12 |
| 20 | Light Blue - e.g. palette 1 colour 12 |
| 21 | Very Light Blue - e.g. palette 1 colour 13 |
| 22 | Very Light Blue - e.g. palette 1 colour 13 |
Palette -3 : Shading colours (White light) :
| 9 | Very Dark Grey - through to - |
| 22 | Very Light Grey |
Palette -4 : Shading colours (Red light) :
| 9 | Very Dark Red - through to - |
| 22 | Very Light Red |
Palette -5 : Shading colours (Orange light) :
| 9 | Very Dark Orange - through to - |
| 22 | Very Light Orange |
Palette -6 : Shading colours (Yellow light) :
| 9 | Very Dark Yellow - through to - |
| 22 | Very Light Yellow |
Palette -7 : Shading colours (Green light) :
| 9 | Very Dark Green - through to - |
| 22 | Very Light Green |
Palette -8 : Shading colours (Blue light) :
| 9 | Very Dark Blue - through to - |
| 22 | Very Light Blue |
Palette -9 : Shading colours (Violet light) :
| 9 | Very Dark Violet - through to - |
| 22 | Very Light Violet |
Femsys Limited