home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 140.GRAFSYS.DOC < prev    next >
Text File  |  1991-06-10  |  76KB  |  1,943 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.                        GRAFSYS (TM) SCIENTIFIC PLOTTING PACKAGE
  12.  
  13.                                      Version 2.01
  14.  
  15.                               User Manual and Reference
  16.  
  17.  
  18.  
  19.           TABLE OF CONTENTS
  20.  
  21.           I. COPYRIGHT NOTICE . . . . . . . . . . . . . . . . . . . . .   1
  22.  
  23.           II. LICENSE INFORMATION . . . . . . . . . . . . . . . . . . .   2
  24.  
  25.           III. SYSTEM REQUIREMENTS  . . . . . . . . . . . . . . . . . .   4
  26.  
  27.           IV. INSTALLATION  . . . . . . . . . . . . . . . . . . . . . .   5
  28.  
  29.           V. RUNNING GRAFSYS  . . . . . . . . . . . . . . . . . . . . .   7
  30.  
  31.           VI.  GRAFSYS MENU SYSTEM  . . . . . . . . . . . . . . . . . .   8
  32.  
  33.           VII. FILE FORMAT REFERENCE  . . . . . . . . . . . . . . . . .   9
  34.  
  35.           VIII. COMMAND LANGUAGE REFERENCE  . . . . . . . . . . . . .    11
  36.  
  37.           IX. CHARACTER FONT  . . . . . . . . . . . . . . . . . . . .    33
  38.  
  39.           X. DEVICE AND COLOR SUPPORT REFERENCE . . . . . . . . . . .    36
  40.  
  41.           XI. PRINTGL SOFTWARE AND THE LASERJET . . . . . . . . . . .    37
  42.  
  43.           XII. FGRAPH MATHEMATICAL FUNCTION GRAPHING PROGRAM  . . . .    39
  44.  
  45.           XIII. WARRANTY DISCLAIMER . . . . . . . . . . . . . . . . .    41
  46.  
  47.           XIV. TRADEMARKS AND ACKNOWLEDGEMENTS  . . . . . . . . . . .    41
  48.  
  49.                        GRAFSYS (TM) SCIENTIFIC PLOTTING PACKAGE
  50.  
  51.                                      Version 2.01
  52.  
  53.                               User Manual and Reference
  54.  
  55.  
  56.           I. COPYRIGHT NOTICE
  57.  
  58.                Copyright (C) 1990 by Francis J. Deck.  All rights reserved. 
  59.                All parts of the GRAFSYS package are protected by copyright.
  60.                You may use GRAFSYS on your system in order to test and
  61.                evaluate it.  You are encouraged to make unmodified copies
  62.                of the original distribution disk and pass them along to
  63.                others.  
  64.  
  65.                If you decide to make use of GRAFSYS, you must become a
  66.                registered user.  See Section II for details on how to do
  67.                this.
  68.  
  69.                The word GRAFSYS is a trademark of Francis J. Deck.
  70.  
  71.                                                             GRAFSYS Page 2
  72.  
  73.  
  74.           II. LICENSE INFORMATION
  75.  
  76.                A. Price Schedule
  77.  
  78.                     1. Individuals and Corporations
  79.  
  80.                          The basic license fee is U.S. $35, plus 5% Indiana
  81.                          sales tax if applicable.  Use the order form at
  82.                          the end of this document.  Or, you can have
  83.                          GRAFSYS print out an order blank in the About
  84.                          GRAFSYS menu.
  85.  
  86.                     2. Students
  87.  
  88.                          The student license fee is U.S. $15, plus 5%
  89.                          Indiana sales tax if applicable.  You must provide
  90.                          some kind of proof that you are currently enrolled
  91.                          as a student, such as a photocopy of your student
  92.                          I.D.  
  93.  
  94.                     3. Quantity Discount
  95.  
  96.                          You can buy multiple GRAFSYS licenses for use
  97.                          within a single organization at a substantial
  98.                          reduction in price.  The price for multiple copies
  99.                          is:
  100.  
  101.                               $35 * sqrt(n)
  102.  
  103.                          In other words, you take the square root of the
  104.                          number of licenses and multiply by $35.  The
  105.                          multiple license allows you to install GRAFSYS on
  106.                          n computers.  You will receive two copies of the
  107.                          GRAFSYS disks with your order, regardless of n. 
  108.                          You are expected to take care of distribution of
  109.                          GRAFSYS within your organization.
  110.  
  111.                B. Purchase Orders
  112.  
  113.                     Purchase orders (net 30) from companies, schools, or
  114.                     the government in the U.S. and Canada will also be
  115.                     accepted.  Send your order to this address:
  116.  
  117.                          Francis Deck
  118.                          P.O. Box 611
  119.                          Notre Dame, Indiana 46556-0611
  120.  
  121.                     Make checks payable to:
  122.  
  123.                          Francis J. Deck
  124.  
  125.                                                             GRAFSYS Page 3
  126.  
  127.  
  128.                     You may not use a purchase order to purchase a license
  129.                     at the student price.
  130.  
  131.                C. Benefits of Registration
  132.  
  133.                     1.   You will receive a disk containing the latest
  134.                          version of GRAFSYS.  Please specify 3.5" or 5.25"
  135.                          disk size.
  136.  
  137.                     2.   You will be informed of the next update.
  138.  
  139.                     3.   Your software license permits you to use GRAFSYS
  140.                          on one computer at a time.  The license covers all
  141.                          future versions of GRAFSYS, but you are
  142.                          responsible for obtaining a copy of any update
  143.                          beyond the single copy you are entitled to upon
  144.                          registration.  Generally, you can obtain an
  145.                          updated copy from a reputable Shareware
  146.                          distributor or bulletin board.  The following
  147.                          company has agreed to distribute copies of
  148.                          GRAFSYS, at a reasonable price:
  149.  
  150.                               Public Brand Software
  151.                               P.O. Box 51315
  152.                               Indianapolis, IN 46251
  153.  
  154.                               1-800-426-DISK
  155.                               1-800-727-3476 in Indiana
  156.                                 317-856-7571 in Indianapolis
  157.  
  158.                          Since I cannot provide the kind of distribution
  159.                          services that PBS can, I decided that it is better
  160.                          if users obtained update copies from them, rather
  161.                          than me.  I will keep PBS updated with the latest
  162.                          version.
  163.  
  164.                                                             GRAFSYS Page 4
  165.  
  166.  
  167.           III. SYSTEM REQUIREMENTS
  168.  
  169.                GRAFSYS will operate on IBM PC and fully-compatible
  170.                computers, and on many non-DOS computers which have a DOS
  171.                "window."  The following are minimum requirements:
  172.  
  173.                *    PC- or MS-DOS 2.00 or higher.
  174.  
  175.                *    Two floppy drives, or one floppy and one hard drive.
  176.  
  177.                *    At least 384K memory, but the more the merrier!
  178.  
  179.                *    A standard graphics adapter.
  180.  
  181.                The following hardcopy devices are supported:
  182.  
  183.                *    Postscript PDL devices including the Apple Laserwriter.
  184.  
  185.                *    HP-GL devices including Hewlett-Packard 7470A pen
  186.                     plotter.
  187.  
  188.                *    IBM Graphics-compatible dot matrix printers, including
  189.                     most Epsons.
  190.  
  191.                *    In conjunction with PrintGL, which is included on the
  192.                     GRAFSYS disk, the following printers are supported:
  193.  
  194.                          HP LaserJet, DeskJet, and compatibles
  195.                          HP PaintJet
  196.                          HP QuietJet
  197.                          IBM Proprinter
  198.                          IBM QuietWriter
  199.                          IBM LaserPrinter
  200.                          IBM ExecJet
  201.                          Canon BJ and LBP
  202.                          Epson 9- and 24-pin printers
  203.                          NEC 24-pin printers
  204.  
  205.                     Most printers are "compatible" with one of these. 
  206.                     Check your manual.
  207.  
  208.                                                             GRAFSYS Page 5
  209.  
  210.  
  211.           IV. INSTALLATION
  212.  
  213.                A. Files on Your Distribution Disks
  214.  
  215.                     Your distribution disk should contain the following
  216.                     files:
  217.  
  218.                          GRAFSYS.ZIP    Main GRAFSYS system.
  219.                          PKUNZIP.EXE    .ZIP file extraction program.
  220.                          INSTALL.DOC    Installation instructions.
  221.  
  222.                B. Hard Disk Installation
  223.  
  224.                     This example uses C:\GRAFSYS.  You could use any other
  225.                     drive or directory:
  226.  
  227.                          C:
  228.                          CD \
  229.                          MD GRAFSYS
  230.                          CD GRAFSYS
  231.                          COPY A:*.*
  232.                          PKUNZIP *.ZIP
  233.  
  234.                C. Floppy Disk Installation
  235.  
  236.                     Use PKUNZIP to put the following files on a single
  237.                     floppy disk:
  238.  
  239.                          GRAFSYS.EXE
  240.                          FGRAPH.EXE
  241.                          GRAFSYS.OVR
  242.                          GRAFSYS.FNT
  243.                          GRAFSYS.HLP
  244.                          INITOPT.CMD
  245.                          *.BGI
  246.  
  247.                     To run GRAFSYS, insert the disk in drive A: (for
  248.                     example), and type:
  249.  
  250.                          A:
  251.                          GRAFSYS
  252.  
  253.                     Later, you can unpack the rest of the GRAFSYS files
  254.                     onto a second disk as you need them.
  255.  
  256.                E. GRAFSYS Files
  257.  
  258.                     The following files are part of the GRAFSYS package. 
  259.                     The files with extension .ZIP contain more than one
  260.                     file inside them:
  261.  
  262.                                                             GRAFSYS Page 6
  263.  
  264.  
  265.                     GRAFSYS.ZIP              Main GRAFSYS system.
  266.  
  267.                          GRAFSYS.EXE         Main program.
  268.                          GRAFSYS.OVR         Program overlay file.
  269.                          GRAFSYS.HLP         Help file.
  270.                          GRAFSYS.FNT         Font file.
  271.                          INITOPT.CMD         Defaults file.
  272.  
  273.                          CGA.BGI             Borland graphics display
  274.                          EGAVGA.BGI          drivers.
  275.                          HERC.BGI
  276.                          PC3270.BGI
  277.                          IBM8514.BGI
  278.                          ATT.BGI
  279.  
  280.                          PRINTGL.EXE         PrintGL program.
  281.  
  282.                          PRINTGL.ZIP         PrintGL documentation and
  283.                                              support files.
  284.  
  285.                          GRAFSYS.DOC         This document.
  286.                          REFCARD.DOC         Quick reference card.
  287.                          LASERJET.DOC        LaserJet support notes.
  288.                          UPDATE.DOC          Update notes.
  289.  
  290.                          *.DAT               Sample data files.
  291.                          *.CMD               Sample command files.
  292.  
  293.                          GPRINT.EXE          Driver program for PrintGL.
  294.  
  295.                          FGRAPH.EXE          Program for graphing math
  296.                                              functions.
  297.  
  298.                          HPGL2PIC.EXE        Support for Micrografx
  299.                                              Designer .PIC graphics file
  300.                                              format.
  301.  
  302.                     INSTALL.DOC              Brief installation
  303.                                              instructions.
  304.  
  305.                     PKUNZIP.EXE              Program for extracting .ZIP
  306.                                              files.
  307.  
  308.                                                             GRAFSYS Page 7
  309.  
  310.  
  311.           V. RUNNING GRAFSYS
  312.  
  313.                A. Menu-Driven Mode
  314.  
  315.                     At the DOS prompt, type:
  316.  
  317.                          GRAFSYS
  318.  
  319.                B. Command File Mode
  320.  
  321.                     The GRAFSYS command language is a psuedo programming
  322.                     language which permits operation of GRAFSYS in a
  323.                     "batch" mode.  It is particularly useful if you want to
  324.                     have a program you have written produce graphics
  325.                     output.  Rather than having to write special device
  326.                     drivers, your program just creates a GRAFSYS command
  327.                     file.  Then, you run GRAFSYS and supply it with the
  328.                     command file name as follows:
  329.  
  330.                          GRAFSYS file1 file2 ... filen
  331.  
  332.                     where file1 etc. are the names of one or more command
  333.                     files for GRAFSYS to execute.  The files will be
  334.                     executed one after another, unless a QUIT command is
  335.                     encountered, in which case GRAFSYS will halt.
  336.  
  337.                     You can also execute a command file from inside
  338.                     GRAFSYS, using the Command File menu option.
  339.  
  340.                     WARNING:  The command file INITOPT.CMD is sacred.  It
  341.                     is automatically read when GRAFSYS starts up, and
  342.                     causes all option variables to be initialized.  If a
  343.                     line of this file is missing, that option will go un-
  344.                     initialized, resulting in unpredictable operation.
  345.  
  346.                     Look at SAMPLE.CMD for an example of a command file. 
  347.                     Try:
  348.  
  349.                          GRAFSYS SAMPLE.CMD
  350.  
  351.                     You can adjust the "defaults" of GRAFSYS by modifying
  352.                     INITOPT.CMD, but do so with care, and never by removing
  353.                     a command.  Don't distribute copies of GRAFSYS with
  354.                     modified INITOPT.CMD, since your modifications could
  355.                     disrupt someone else's system.
  356.  
  357.                                                             GRAFSYS Page 8
  358.  
  359.  
  360.           VI.  GRAFSYS MENU SYSTEM
  361.  
  362.                Most users will operate GRAFSYS via its user-friendly menu
  363.                system.  Each menu displays a list of selections, some of
  364.                which include a "value."  You can browse through the menus
  365.                by using the following keys:
  366.  
  367.                     Key:                Action:
  368.                     ----                -------
  369.                     Up, Down Arrows     Move highlight bar up and down.
  370.                     Return              Select highlighted item.
  371.                     Esc                 Exit current menu.
  372.                     F1                  Display help about highlighted
  373.                                         item.
  374.  
  375.                Each menu item also has a number.  You can select an item by
  376.                typing its number, followed by pressing the Return key.
  377.  
  378.                GRAFSYS will support a mouse if you have resident mouse
  379.                support installed on your system.  This is usually achieved
  380.                by running a program called MOUSE.COM which came with your
  381.                mouse.
  382.  
  383.                                                             GRAFSYS Page 9
  384.  
  385.  
  386.           VII. FILE FORMAT REFERENCE
  387.  
  388.                A. Data Point Files
  389.  
  390.                     A data point file must be a plain ASCII "text" file,
  391.                     such as produced by a text editor.  If a file is
  392.                     readable through the DOS TYPE or PRINT command, then it
  393.                     is probably readable by GRAFSYS.  Most languages
  394.                     automatically produce output in a correct format,
  395.                     unless you tell them to do otherwise.  In FORTRAN, just
  396.                     free-format your output files, with spaces between
  397.                     numbers.
  398.  
  399.                     The file must contain one point per line, with no blank
  400.                     lines.  A free multicolumn format must be followed, and
  401.                     the meaning of each column depends on the type of error
  402.                     bars desired.  The columns don't have to line up
  403.                     neatly.  The following table gives the designations of
  404.                     each column for the various error bar types.  The first
  405.                     two columns in the table give the type of error bar for
  406.                     each axis.
  407.  
  408.                              TABLE OF POINT FILE FORMATS
  409.  
  410.                     X       Y       Col#1 Col#2 Col#3 Col#4 Col#5 Col#6
  411.                     ---------------------------------------------------
  412.                     None    None    X     Y
  413.                     None    Symm.   X     Y     dY
  414.                     None    Asymm.  X     Y     dY-   dY+
  415.                     Symm.   None    X     Y     dX
  416.                     Symm.   Symm.   X     Y     dX    dY
  417.                     Symm.   Asymm.  X     Y     dX    dY-   dY+
  418.                     Asymm.  None    X     Y     dX-   dX+
  419.                     Asymm.  Symm.   X     Y     dX-   dX+   dY
  420.                     Asymm.  Asymm.  X     Y     dX-   dX+   dY-   dY+
  421.  
  422.                     The "d" refers to the distance of the end of the error
  423.                     bar from the point "centroid" (X,Y).  Hence, for
  424.                     symmetrical Y error bars, a vertical bar whose height
  425.                     is twice dY will be rendered.  For asymmetrical error
  426.                     bars, two distances are needed, the first for the lower
  427.                     bound, and the second for the upper bound.
  428.  
  429.                     If there are less columns in a line than required for a
  430.                     particular error bar type, an error will result.  If
  431.                     there are more, the extra columns will be ignored, and
  432.                     a warning message will be generated.
  433.  
  434.                B. GRAFSYS Command Language Files
  435.  
  436.                     These are DOS "text" files containing commands to
  437.  
  438.                                                             GRAFSYS Page 10
  439.  
  440.  
  441.                     GRAFSYS, written in a psuedo programming language.  A
  442.                     command file has one command per line, with blank lines
  443.                     permitted.  A semicolon is used to delimit comments. 
  444.                     More information about these files can be found in the
  445.                     Command Language Reference section, page 11.  The
  446.                     initialization option file INITOPT.CMD is an example of
  447.                     a command language file.  Also, look at SAMPLE.CMD on
  448.                     your distribution disk.
  449.  
  450.                                                             GRAFSYS Page 11
  451.  
  452.  
  453.           VIII. COMMAND LANGUAGE REFERENCE
  454.  
  455.                A. Introduction
  456.  
  457.                     This Reference documents the GRAFSYS Command Language. 
  458.                     It assumes that you already have some familiarity with
  459.                     GRAFSYS.
  460.  
  461.                B. Program Structure
  462.  
  463.                     A command file should be thought of as a "program",
  464.                     written in a special command language.  Each command
  465.                     consists of an isolated keyword or a keyword followed
  466.                     by a parameter list.  You must observe these basic
  467.                     rules:
  468.  
  469.                     *    The command file must end with an END statement.
  470.  
  471.                     *    No mor than one command per line.
  472.  
  473.                     *    Blank lines are permitted.
  474.  
  475.                     *    Everything to the right of a semicolon is a
  476.                          comment, unless the semicolon is part of a literal
  477.                          string.
  478.  
  479.                C. Literal Constants
  480.  
  481.                     No "variables" are permitted in the command language. 
  482.                     Hence, all fields in a command's parameter list must be
  483.                     filled by literal constants.  These may be keywords,
  484.                     strings, or numerics.
  485.  
  486.                     1. Keywords
  487.  
  488.                          Keywords must be typed exactly as spelled in the
  489.                          Reference, with no intervening blanks.  Keywords
  490.                          are case-insensitive.
  491.  
  492.                     2. Strings
  493.  
  494.                          Strings are enclosed in single quotes.  If you
  495.                          want a literal string to contain a single quote
  496.                          mark, use two consecutive single quotes.
  497.  
  498.                     3. Numerics
  499.  
  500.                          Numeric format is quite free.  In some cases, a
  501.                          nonintegral value would have no meaning.
  502.  
  503.                     4. Data Points
  504.  
  505.                                                             GRAFSYS Page 12
  506.  
  507.  
  508.                          An INLINEDATA command is to be followed by a list
  509.                          of one or more data points.  The format for these
  510.                          lines is exactly the same as in a data point file,
  511.                          described above in File Format Reference.  A
  512.                          comment line all by itself terminates inline data.
  513.  
  514.                D. Syntax Convention
  515.  
  516.                     The following convention will be used for syntax
  517.                     descriptions:
  518.  
  519.                     CAPITALS  Indicate keywords.
  520.  
  521.                     lowercase Indicate "variable" fields, which may be
  522.                               filled with numerics, strings, or keywords.
  523.  
  524.                     'quotes'  Indicate a string field.  The quotes must be
  525.                               included literally in the command file.
  526.  
  527.                     |         If two or more keywords are separated by the
  528.                               style bar, then one of these keywords is to
  529.                               be selected.
  530.  
  531.                     [ ]       Square brackets indicate a part of the
  532.                               command which is either optional, or whose
  533.                               existence is dependent on the value of
  534.                               another field.
  535.  
  536.                     Each entry in the Command Reference will be headed by
  537.                     the keyword in capital letters.  Following this will be
  538.                     a description of the command, its syntax, and comments.
  539.  
  540.                E. Command Reference
  541.  
  542.                No outline headings will be used in this section.  Commands
  543.                are arranged in alphabetical order.
  544.  
  545.                AXISLABEL
  546.  
  547.                     Purpose:  Labels for the axes.
  548.  
  549.                     Syntax:   AXISLABEL X|Y 'label'
  550.  
  551.                     Comment:  See the section on Character Font, page 33,
  552.                               for how to use the backslash character to
  553.                               delimit special character codes.
  554.  
  555.                     Example:  AXISLABEL X 'frequency (MHz)'
  556.                               AXISLABEL Y '\omega\ (s\sup\-1\sub\)'
  557.  
  558.                                                             GRAFSYS Page 13
  559.  
  560.  
  561.                AXISLINE
  562.  
  563.                     Purpose:  Line attributes for axes.
  564.  
  565.                     Syntax:   AXISLINE w p c
  566.  
  567.                               w    Width of line in inches.
  568.  
  569.                               p    SOLID
  570.                                    DOTS
  571.                                    SHORTDASH
  572.                                    LONGDASH
  573.                                    DOTDASH
  574.                                    DOTDOTDASH
  575.                                    NONE
  576.  
  577.                               c    Color.
  578.  
  579.                     Example:  AXISLINE 0.01 SOLID 1
  580.  
  581.                     Depends on:    COLORMAP
  582.  
  583.                AXISTEXT
  584.  
  585.                     Purpose:  Text attributes for axis labels.
  586.  
  587.                     Syntax:   AXISTEXT h c
  588.  
  589.                               h    Character height in inches.
  590.  
  591.                               c    Color.
  592.  
  593.                     Example:  AXISTEXT 0.15 1
  594.  
  595.                     Depends on:    COLORMAP
  596.  
  597.                                                             GRAFSYS Page 14
  598.  
  599.  
  600.                BACKGROUND
  601.  
  602.                     Purpose:  Plot background color.
  603.  
  604.                     Syntax:   BACKGROUND c
  605.  
  606.                               c    User color of background.
  607.  
  608.                     Comment:  See the Device and Color Support Reference,
  609.                               page 36, for additional notes on using this
  610.                               command.
  611.  
  612.                     Example:  BACKGROUND 0
  613.  
  614.                     Depends on:    COLORMAP
  615.  
  616.                BORDER
  617.  
  618.                     Purpose:  Draw or hide border around entire plot.
  619.  
  620.                     Syntax:   BORDER YES|NO
  621.  
  622.                     Example:  BORDER NO
  623.  
  624.                BORDERLINE
  625.  
  626.                     Purpose:  Line attributes for plot border.
  627.  
  628.                     Syntax:   BORDERLINE w p c
  629.  
  630.                               w    Width of line
  631.  
  632.                               p    SOLID, DOTS, SHORTDASH, LONGDASH,
  633.                                    DOTDASH, DOTDOTDASH, NONE
  634.  
  635.                               c    User color.
  636.  
  637.                     Example:  BORDERLINE 0.01 SOLID 1
  638.  
  639.                                                             GRAFSYS Page 15
  640.  
  641.  
  642.                COLORMAP
  643.  
  644.                     Purpose:  Maps color numbers to device color codes.
  645.  
  646.                     Syntax:   COLORMAP dev n r
  647.  
  648.                               dev  DMP, HP, POST, SCRN
  649.  
  650.                               n    "User" color number from 0 to 15.  Must
  651.                                    be an integer.
  652.  
  653.                               r    "Device" color number used by device to
  654.                                    represent color.  May be an integer or
  655.                                    real, and is device-dependent.
  656.  
  657.                     Comment:  If you want to use color in GRAFSYS, you must
  658.                               set up a color map.  See the Device and Color
  659.                               Support Reference section below for
  660.                               instructions.
  661.  
  662.                     Example:  COLORMAP DMP 0 0
  663.  
  664.                                                             GRAFSYS Page 16
  665.  
  666.  
  667.                DATAFILE
  668.  
  669.                     Purpose:  Read a data file.
  670.  
  671.                     Syntax:   DATAFILE 'p' ebars
  672.  
  673.                               ebars     NOERRBARS
  674.                                         ERRBARS   Y--Symmetrical
  675.                                         XNYA      X--None, Y--Asymm.
  676.                                         XSYN      X--Symm., Y--None
  677.                                         XSYS      X--Symm., Y--Symm.
  678.                                         XSYA      X--Symm., Y--Asymm.
  679.                                         XAYN      X--Asymm., Y--None.
  680.                                         XAYS      X--Asymm., Y--Symm.
  681.                                         XAYA      X--Asymm., Y--Asymm.
  682.  
  683.                               p    Full DOS pathname of data file.
  684.  
  685.                     Comment:  You must "set up" certain options before
  686.                               executing this command:
  687.  
  688.                                    PLOTSYMBLINE
  689.                                    PLOTSYMBSIZE
  690.                                    PLOTLINE
  691.                                    INCLUDE
  692.                                    PLOTSYMBOL
  693.                                    ERRBARSHOW
  694.                                    GROUPSCALING
  695.                                    FILLSYMBOL
  696.  
  697.                               Note the "None" selection for both FITLINE
  698.                               and PLOTSYMBOL.  This is how you decide
  699.                               whether a group will be rendered as a curve,
  700.                               scatter plot, or both.  The attributes of the
  701.                               point group will come from the last occurance
  702.                               of any of the above commands.  If you do not
  703.                               want to change an attribute between groups,
  704.                               or are comfortable with GRAFSYS's defaults,
  705.                               you can omit the corresponding command.
  706.  
  707.                               The column format of the file must match the
  708.                               type of error bars chosen above.  See the
  709.                               File Format Reference, page 9.
  710.  
  711.                     Example:  DATAFILE 'SAMPLE.DAT' ERRBARS
  712.  
  713.                     Depends on:    PLOTSYMBLINE, PLOTLINE, INCLUDE,
  714.                                    PLOTSYMBOL.
  715.  
  716.                DATATEXT
  717.  
  718.                                                             GRAFSYS Page 17
  719.  
  720.  
  721.                     Purpose:  Places a text string anywhere on the plot.
  722.  
  723.                     Syntax:   DATATEXT x y ang ht col 'string'
  724.  
  725.                               x y  Location of lower left-hand corner of
  726.                                    text string, in "data" units, meaning as
  727.                                    measured by the x and y rulers on the
  728.                                    plot.  The command PLOTTEXT is the same
  729.                                    as DATATEXT, but x and y are specified
  730.                                    in inches from lower left-hand corner of
  731.                                    plot.
  732.  
  733.                               ang  Angle of rotation of text, in degrees
  734.                                    counterclockwise from horizontal.
  735.  
  736.                               ht   Height of characters in inches.
  737.  
  738.                               col  Color in "user" units.
  739.  
  740.                     Comment:  The string can contain special GRAFSYS
  741.                               characters for special symbols, superscripts,
  742.                               subscripts, etc.  Also see PLOTTEXT.
  743.  
  744.                     Example:  DATATEXT 1 1 0 0.1 1 'Hello There'
  745.  
  746.                DEVICEPATH
  747.  
  748.                     Purpose:  Default output path for hardcopy devices.
  749.  
  750.                     Syntax:   DEVICEPATH dev 'p'
  751.  
  752.                               dev  DMP, HP, POST, SCRN
  753.  
  754.                               p    Full pathname of destination file or
  755.                                    logical device for hardcopy output.
  756.  
  757.                     Example:  DEVICE DMP 'PRN'
  758.  
  759.                                                             GRAFSYS Page 18
  760.  
  761.  
  762.                DISPTICKS
  763.  
  764.                     Purpose:  Displace ruler tick marks towards the outside
  765.                               of the data plotting area.
  766.  
  767.                     Syntax:   DISPTICKS X|Y r
  768.  
  769.                               r    Real number from 0 to 1 which indicates
  770.                                    the fraction of the ruler tick mark
  771.                                    which will extend outside the plotting
  772.                                    area.  
  773.  
  774.                     Example:  DISPTICKS X 0
  775.  
  776.                EBARFMT
  777.  
  778.                     Purpose:  Error bar format.
  779.  
  780.                     Syntax:   EBARFMT fmt
  781.  
  782.                               fmt  BARANDMARKS
  783.                                    BARONLY
  784.                                    MARKSONLY
  785.  
  786.                     Example:  EBARFMT BARANDMARKS
  787.  
  788.                END
  789.  
  790.                     Purpose:  Signal end of command file.
  791.  
  792.                     Syntax:   END
  793.  
  794.                     Comment:  END is mandatory at the end of a command
  795.                               file.  If the intent is to force GRAFSYS to
  796.                               terminate execution entirely, the QUIT
  797.                               command should be used, but the file must
  798.                               still terminate with an END command, after
  799.                               QUIT.
  800.  
  801.                     Example:  END
  802.  
  803.                                                             GRAFSYS Page 19
  804.  
  805.  
  806.                ERRBARSHOW
  807.  
  808.                     Purpose:  Allows error bars to be read in from a file,
  809.                               but hidden from view.
  810.  
  811.                     Syntax:   ERRBARSHOW YES|NO
  812.  
  813.                     Comment:  All subsequent DATAFILE commands will be
  814.                               affected by the last ERRBARSHOW.  The idea is
  815.                               to precede a DATAFILE command with
  816.                               ERRBARSHOW.
  817.  
  818.                     Example:  ERRBARSHOW YES
  819.  
  820.                EXPLABELS
  821.  
  822.                     Purpose:  Select "exponential" ruler labels.
  823.  
  824.                     Syntax:   EXPLABELS X|Y YES|NO
  825.  
  826.                     Comment:  In exponential (YES) mode, only the
  827.                               significand of each number is printed on the
  828.                               ruler.  The exponent part is included in the
  829.                               axis text label.  Otherwise, the entire
  830.                               number is printed on the ruler.
  831.  
  832.                     Example:  EXPLABELS X NO
  833.  
  834.                FILLSYMBOL
  835.  
  836.                     Purpose:  Causes plot symbols to be filled with color.
  837.  
  838.                     Syntax:   FILLSYMBOL YES|NO
  839.  
  840.                     Comment:  All subsequent DATAFILE commands will be
  841.                               affected by this command.  The idea is to
  842.                               precede DATAFILE with a FILLSYMBOL.
  843.  
  844.                               Note that only Postscript devices support
  845.                               filled symbols.
  846.  
  847.                     Example:  FILLSYMBOL YES
  848.  
  849.                                                             GRAFSYS Page 20
  850.  
  851.  
  852.                FINESPACING
  853.  
  854.                     Purpose:  The small space GRAFSYS places between plot
  855.                               elements for readability.
  856.  
  857.                     Syntax:   FINESPACING l
  858.  
  859.                     Example:  FINESPACING 0.05
  860.  
  861.                FONT
  862.  
  863.                     Purpose:  Select a GRAFSYS character font.
  864.  
  865.                     Syntax:   FONT 'path'
  866.  
  867.                               path      Name of file containing GRAFSYS
  868.                                         font.
  869.  
  870.                     Example:  FONT '|GRAFSYS.FNT'
  871.  
  872.                FONTLEADING
  873.  
  874.                     Purpose:  Determine the font leading ratio.
  875.  
  876.                     Syntax:   FONTLEADING r
  877.  
  878.                               r    Font leading ratio.
  879.  
  880.                     Comment:  The font leading ratio is the ratio of the
  881.                               amount of blank space left between successive
  882.                               text and numeric characters to the character
  883.                               height.  In other words, a larger ratio means
  884.                               more space between the letters.
  885.  
  886.                     Example:  FONTLEADING 0.5
  887.  
  888.                FULLBOX
  889.  
  890.                     Purpose:  Select full or half box around data point
  891.                               area.
  892.  
  893.                     Syntax:   FULLBOX YES|NO
  894.  
  895.                     Example:  FULLBOX YES
  896.  
  897.                                                             GRAFSYS Page 21
  898.  
  899.  
  900.                GRIDLINE
  901.  
  902.                     Purpose:  Line attributes for plot grid.
  903.  
  904.                     Syntax:   GRIDLINE wid patt color
  905.  
  906.                               wid       Width of line in inches.
  907.  
  908.                               patt      SOLID
  909.                                         DOTS
  910.                                         SHORTDASH
  911.                                         LONGDASH
  912.                                         DOTDASH
  913.                                         DOTDOTDASH
  914.                                         NONE
  915.  
  916.                               color     Color in user units.
  917.  
  918.                     Example:  GRIDLINE 0.01 DASHES 1
  919.  
  920.                GRIDLINES
  921.  
  922.                     Purpose:  Grid lines in data point area.
  923.  
  924.                     Syntax:   GRIDLINES X|Y YES|NO
  925.  
  926.                     Comment:  If grid lines are selected, a line is drawn
  927.                               across the plot at the location of each ruler
  928.                               numeric label. 
  929.  
  930.                               Note that more sophisticated grid drawing is
  931.                               not supported because journals don't accept
  932.                               graphs with grid lines.
  933.  
  934.                     Example:  GRIDLINES X YES
  935.  
  936.                GROUPSCALING
  937.  
  938.                     Purpose:  Shifting and expansion of group data points.
  939.  
  940.                     Syntax:   GROUPSCALING x0 x1 y0 y1
  941.  
  942.                     Comment:  The point (x,y) is mapped into the point (x0
  943.                               + x1*x, y0 + y1*x).  This affects subsequent
  944.                               groups read by DATAFILE command.  The data
  945.                               points themselves are not changed.
  946.  
  947.                     Example:  GROUPSCALING 0 1 0 1
  948.  
  949.                                                             GRAFSYS Page 22
  950.  
  951.  
  952.                HPPENSPEED
  953.  
  954.                     Purpose:  Sets the pen speed on the HP pen plotter.
  955.  
  956.                     Syntax:   HPPENSPEED s
  957.  
  958.                               s    Speed in cm/s
  959.  
  960.                     Comment:  The default value of 38.1 cm/s is fine when
  961.                               using the special paper or film supplied by
  962.                               HP, but is too fast for plain paper.  We
  963.                               recommend a speed of 15 cm/s for plain paper.
  964.  
  965.                     Example:  HPPENSPEED 38.1
  966.  
  967.                INCLUDE
  968.  
  969.                     Purpose:  Sets include status for subsequent point
  970.                               groups.
  971.  
  972.                     Syntax:   INCLUDE YES|NO
  973.  
  974.                               YES  Include subsequent groups during data
  975.                                    ranging.
  976.  
  977.                               NO   Ignore subsequent groups during data
  978.                                    ranging.
  979.  
  980.                     Comment:  A good programming practice would be to have
  981.                               an INCLUDE statement before every DATAFILE
  982.                               statement.
  983.  
  984.                     Example:  INCLUDE YES
  985.  
  986.                                                             GRAFSYS Page 23
  987.  
  988.  
  989.                INLINEDATA
  990.  
  991.                     Purpose:  Signal the start of an inline data group in
  992.                               the command file
  993.  
  994.                     Syntax:   INLINEDATA ebars
  995.  
  996.                               ebars     NOERRBARS
  997.                                         ERRBARS   Y--Symmetrical
  998.                                         XNYA      X--None, Y--Asymm.
  999.                                         XSYN      X--Symm., Y--None
  1000.                                         XSYS      X--Symm., Y--Symm.
  1001.                                         XSYA      X--Symm., Y--Asymm.
  1002.                                         XAYN      X--Asymm., Y--None.
  1003.                                         XAYS      X--Asymm., Y--Symm.
  1004.                                         XAYA      X--Asymm., Y--Asymm.
  1005.  
  1006.                               p    Full DOS pathname of data file.
  1007.  
  1008.                     Comment:  The full syntax for an inline data group is:
  1009.  
  1010.                                    INLINEDATA ebars
  1011.                                     x1 y1[ d1...]
  1012.                                     x2 y2[ d2...]
  1013.                                     ....
  1014.                                     xn yn[ dn...]
  1015.                                    ;comment line
  1016.  
  1017.                               The INLINEDATA command signals GRAFSYS that a
  1018.                               data group follows in the command file.  The
  1019.                               syntax for the data points is exactly as in a
  1020.                               data point file.  A comment line terminates
  1021.                               inline data.  A command file can have as many
  1022.                               inline data groups as it wants.
  1023.  
  1024.                               You must "set up" certain options before
  1025.                               executing this command:
  1026.  
  1027.                                    PLOTSYMBLINE
  1028.                                    PLOTSYMBSIZE
  1029.                                    PLOTLINE
  1030.                                    INCLUDE
  1031.                                    PLOTSYMBOL
  1032.                                    ERRBARSHOW
  1033.                                    GROUPSCALING
  1034.                                    FILLSYMBOL
  1035.  
  1036.                               Note the "None" selection for both FITLINE
  1037.                               and PLOTSYMBOL.  This is how you decide
  1038.                               whether a group will be rendered as a curve,
  1039.                               a group of symbols, or both.  The attributes
  1040.  
  1041.                                                             GRAFSYS Page 24
  1042.  
  1043.  
  1044.                               of the point group will come from the last
  1045.                               occurance of any of the above commands.  If
  1046.                               you do not want to change an attribute
  1047.                               between groups, or are comfortable with
  1048.                               GRAFSYS's defaults, you can omit the
  1049.                               corresponding command.
  1050.  
  1051.                               The column format of the file must match the
  1052.                               type of error bars chosen above.
  1053.  
  1054.                     Example:  PLOTSYMBOL SQUARE
  1055.                               INLINEDATA ERRBARS
  1056.                                0.0 0.0 0.05
  1057.                                1.1 1.1 0.04
  1058.                                2.2 2.2 0.02
  1059.                               ;END OF INLINE DATA
  1060.  
  1061.                LOGFLOOR
  1062.  
  1063.                     Purpose:  Sets "floor" for data values in log or dB
  1064.                               plotting.
  1065.  
  1066.                     Syntax:   LOGFLOOR X|Y r
  1067.  
  1068.                               r    Floor value
  1069.  
  1070.                     Comment:  During log or dB scaling, if an X or Y value
  1071.                               is found to below r, then it will be given
  1072.                               the value of r prior to log conversion.  This
  1073.                               is useful if you have want to make a log plot
  1074.                               of data which have some zero or negative
  1075.                               points.
  1076.  
  1077.                     Example:  LOGFLOOR Y 0.1
  1078.  
  1079.                MENUCOLOR
  1080.  
  1081.                     Purpose:  Sets menu foreground color.
  1082.  
  1083.                     Syntax:   MENUCOLOR c
  1084.  
  1085.                               c    Integer user color value
  1086.  
  1087.                     Comment:  See supplemental document on colors for notes
  1088.                               on how to use this command.
  1089.  
  1090.                     Example:  MENUCOLOR 1
  1091.  
  1092.                     Depends on:    COLORMAP.
  1093.  
  1094.                                                             GRAFSYS Page 25
  1095.  
  1096.  
  1097.                MINORTICK
  1098.  
  1099.                     Purpose:  Sets number of minor tick mark divisions.
  1100.  
  1101.                     Syntax:   MINORTICK X|Y n
  1102.  
  1103.                               n    Number if minor tick mark divisions.
  1104.  
  1105.                     Example:  MINORTICK X 5
  1106.  
  1107.                NEEDLEBASE
  1108.  
  1109.                     Purpose:  Sets baseline for "needle" plotting symbol.
  1110.  
  1111.                     Syntax:   NEEDLEBASE y
  1112.  
  1113.                     Comment:  The "needle" plotting symbol is drawn as a
  1114.                               vertical line segment starting from the data
  1115.                               point centroid and ending at a "baseline" y
  1116.                               value.  Needle marks may point upward or
  1117.                               downward from the baseline.  If the baseline
  1118.                               y value is outside the plot area, the needle
  1119.                               mark will be drawn to the top or bottom of
  1120.                               the plot area.  If a logarithmic y scale is
  1121.                               selected then the bottom of the plot area
  1122.                               will always be used as the baseline.
  1123.  
  1124.                     Example:  NEEDLEBASE 0
  1125.  
  1126.                                                             GRAFSYS Page 26
  1127.  
  1128.  
  1129.                NLABELS
  1130.  
  1131.                     Purpose:  Number of ruler numeric labels.
  1132.  
  1133.                     Syntax:   NLABELS X|Y n
  1134.  
  1135.                               n    Number of labels.
  1136.  
  1137.                     Comment:  The specified number of labels is the "first
  1138.                               guess" for how many labels will be printed on
  1139.                               the axis ruler.  The actual number may change
  1140.                               slightly during plotting to make the nicest
  1141.                               looking plot.
  1142.  
  1143.                     Example:  NLABELS X 5
  1144.  
  1145.                NUMLABSTYLE
  1146.  
  1147.                     Purpose:  How numeric ruler labels are printed.
  1148.  
  1149.                     Syntax:   NUMLABSTYLE X|Y st
  1150.  
  1151.                               st   NUMTICK   Numbers and "tick" marks
  1152.                                    TICKONLY  Tick marks only.
  1153.                                    SPACEONLY Space for numbers only.
  1154.                                    TICKSPACE Tick marks and space for
  1155.                                              numbers.
  1156.                                    NONE
  1157.  
  1158.                     Example:  NUMLABSTYLE X TICKONLY
  1159.  
  1160.                ORIENTATION
  1161.  
  1162.                     Purpose:  Orientation of plot.
  1163.  
  1164.                     Syntax:   ORIENTATION PORTRAIT|LANDSCAPE
  1165.  
  1166.                     Example:  ORIENTATION LANDSCAPE
  1167.  
  1168.                ORIGIN
  1169.  
  1170.                     Purpose:  Location of origin on paper.
  1171.  
  1172.                     Syntax:   ORIGIN x y
  1173.  
  1174.                     Comment:  The origin is the displacement from the lower
  1175.                               left-hand corner of the paper.
  1176.  
  1177.                     Example:  ORIGIN 0.5 0.5
  1178.  
  1179.                                                             GRAFSYS Page 27
  1180.  
  1181.  
  1182.                PLOTLINE
  1183.  
  1184.                     Purpose:  Line attributes used during line plot.
  1185.  
  1186.                     Syntax:   PLOTLINE w p c
  1187.  
  1188.                               w    Width of line in inches or cm, depending
  1189.                                    on UNITS command.
  1190.  
  1191.                               p    SOLID, DOTS, SHORTDASH, LONGDASH,
  1192.                                    DOTDASH, DOTDOTDASH, HISTOGRAM, NONE.
  1193.  
  1194.                     Comment:  These are the line attributes used by
  1195.                               subsequent DATAFILE statements.  Good
  1196.                               programming practice dictates that you
  1197.                               include FITWID before every DATAFILE command. 
  1198.  
  1199.                     Example:  PLOTLINE 0.01 DOTS 1
  1200.  
  1201.                     Depends on:    COLORMAP
  1202.  
  1203.                PLOTSYMBOL
  1204.  
  1205.                     Purpose:  Defines plot symbol to assign to subsequent
  1206.                               DATAFILE commands.
  1207.  
  1208.                     Syntax:   PLOTSYMBOL sym
  1209.  
  1210.                               sym  SQUARE, X, SMALLDOT, DIAMOND, TRIANGLE,
  1211.                                    PLUS, NONE
  1212.  
  1213.                     Example:  PLOTSYMBOL SMALLDOT
  1214.  
  1215.                PLOTSYMBSIZE
  1216.  
  1217.                     Purpose:  Size of plotting symbols.
  1218.  
  1219.                     Syntax:   PLOTSYMBSIZE w
  1220.  
  1221.                     Comment:  PLOTSYMBSIZE also affects the width of error
  1222.                               bar end caps.
  1223.  
  1224.                     Example:  PLOTSYMBSIZE 0.05
  1225.  
  1226.                                                             GRAFSYS Page 28
  1227.  
  1228.  
  1229.                PLOTSYMBLINE
  1230.  
  1231.                     Purpose:  Plot symbol line attributes.
  1232.  
  1233.                     Syntax:   PLOTSYMBLINE w p c
  1234.  
  1235.                               w    Thickness of line
  1236.  
  1237.                               p    SOLID, DOTS, SHORTDASH, LONGDASH,
  1238.                                    DOTDASH, DOTDOTDASH, NONE
  1239.  
  1240.                               c    Color in user units.
  1241.  
  1242.                     Example:  PLOTSYMBLINE 0.01 SOLID 1
  1243.  
  1244.                PLOTTEXT
  1245.  
  1246.                     Purpose:  Place text anywhere on plot.
  1247.  
  1248.                     Syntax:   PLOTTEXT x y ang ht col 'string'
  1249.  
  1250.                               x y  Location of lower left-hand corner of
  1251.                                    text string in inches from lower left-
  1252.                                    hand corner of plot.
  1253.  
  1254.                     Comment:  See DATATEXT above for a more thorough
  1255.                               description of this command.
  1256.  
  1257.                PLOTTITLE
  1258.  
  1259.                     Purpose:  Title of plot.
  1260.  
  1261.                     Syntax:   PLOTTITLE 'title'
  1262.  
  1263.                     Example:  PLOTTITLE 'Title of Plot'
  1264.  
  1265.                QUIT
  1266.  
  1267.                     Purpose:  Terminate GRAFSYS entirely.
  1268.  
  1269.                     Syntax:   QUIT
  1270.  
  1271.                     Comment:  This command causes GRAFSYS to terminate
  1272.                               immediately, and return control to DOS.  Even
  1273.                               if you use a QUIT command, you must still
  1274.                               have an END command after it to signify the
  1275.                               end of the command file.
  1276.  
  1277.                     Example:  QUIT
  1278.  
  1279.                                                             GRAFSYS Page 29
  1280.  
  1281.  
  1282.                RANGING
  1283.  
  1284.                     Purpose:  Auto or manual ranging.
  1285.  
  1286.                     Syntax:   RANGING X|Y AUTO|MANUAL[ min max]
  1287.  
  1288.                               min,max   Minimum and maximum bounds for
  1289.                                         axis.  Only needed if MANUAL is
  1290.                                         used.
  1291.  
  1292.                     Example:  RANGING X AUTO 1.34 1.56
  1293.                               RANGING Y MANUAL
  1294.  
  1295.                RELEASE
  1296.  
  1297.                     Purpose:  Release a plot to a device.
  1298.  
  1299.                     Syntax:   RELEASE dev[ w h]
  1300.  
  1301.                               dev  SCRN, HP, POST, DMP
  1302.  
  1303.                               w,h  Width and height of plot in inches.
  1304.  
  1305.                     Comment:  Width and height are not needed for screen
  1306.                               plotting.  For hardcopy devices, output will
  1307.                               be sent to path named in last DEVICEPATH
  1308.                               command.
  1309.  
  1310.                     Example:  RELEASE SCRN
  1311.                               RELEASE DMP 5 6.5
  1312.  
  1313.                RESOLUTION
  1314.  
  1315.                     Purpose:  Set resolution for dot-matrix plotting.
  1316.  
  1317.                     Syntax:   RESOLUTION r
  1318.  
  1319.                               r    LOW, MEDIUM
  1320.  
  1321.                     Comment:  The following print resolutions are available
  1322.                               for dot-matrix plotting:
  1323.  
  1324.                                    Low: 60 X 72 dpi
  1325.                                    Medium: 120 X 72 dpi
  1326.  
  1327.                     Example:  RESOLUTION LOW
  1328.  
  1329.                                                             GRAFSYS Page 30
  1330.  
  1331.  
  1332.                REVERSEAXIS
  1333.  
  1334.                     Purpose:  Reverse an axis.
  1335.  
  1336.                     Syntax:   REVERSEAXIS X|Y NO|YES
  1337.  
  1338.                     Example:  REVERSEAXIS X YES
  1339.  
  1340.                RULERENDS
  1341.  
  1342.                     Purpose:  Force labels at the ends of the axis rulers.
  1343.  
  1344.                     Syntax:   RULERENDS X|Y YES|NO
  1345.  
  1346.                     Example:  RULERENDS X YES
  1347.  
  1348.                RULERTEXT
  1349.  
  1350.                     Purpose:  Attributes of ruler numbers.
  1351.  
  1352.                     Syntax:   RULERTEXT h c
  1353.  
  1354.                               h    Height of character.
  1355.  
  1356.                               c    Color in user units.
  1357.  
  1358.                     Example:  RULERTEXT 0.1
  1359.  
  1360.                RULERTICKSIZE
  1361.  
  1362.                     Purpose:  Size of tick mark on axis ruler.
  1363.  
  1364.                     Syntax:   RULERTICKSIZE l
  1365.  
  1366.                     Example:  RULERTICKSIZE 0.1
  1367.  
  1368.                                                             GRAFSYS Page 31
  1369.  
  1370.  
  1371.                SCALE
  1372.  
  1373.                     Purpose:  Sets axis scaling.
  1374.  
  1375.                     Syntax:   SCALE X|Y LINEAR|LOG|DB10|DB20
  1376.  
  1377.                     Comment:  Chooses the method of scaling an axis.  The
  1378.                               two kinds of dB scaling are:
  1379.  
  1380.                               DB10:     dB = 10 log r
  1381.                               DB20:     dB = 20 log r
  1382.  
  1383.                               where r is the X or Y value.
  1384.  
  1385.                     Example:  SCALE X LOG
  1386.  
  1387.                SCRNSIZE
  1388.  
  1389.                     Purpose:  Indicate physical size of graphics screen to
  1390.                               GRAFSYS.
  1391.  
  1392.                     Syntax:   SCRNSIZE x y
  1393.  
  1394.                     Comment:  In order to correctly scale characters on the
  1395.                               screen, GRAFSYS needs to know how big the
  1396.                               screen is.  You should measure your screen's
  1397.                               active area and provide the dimensions to
  1398.                               GRAFSYS.  The defaults in INITOPT.CMD are for
  1399.                               a "standard" 12-inch diagonal screen.
  1400.  
  1401.                     Example:  SCRNSIZE 8.5 5.75
  1402.  
  1403.                TEXTPENRATIO
  1404.  
  1405.                     Purpose:  Set ratio of text pen width to character
  1406.                               height.
  1407.  
  1408.                     Syntax:   TEXTPENRATIO r
  1409.  
  1410.                               r    Ratio
  1411.  
  1412.                     Comment:  GRAFSYS generates its own characters from a
  1413.                               built-in vector font.  The characters are
  1414.                               rendered as a series of line segments.  This
  1415.                               command adjusts how fat the line used to
  1416.                               print the characters will be.  Increasing the
  1417.                               ratio will make the characters more "bold."
  1418.  
  1419.                     Example:  TEXTPENRATIO 0.05
  1420.  
  1421.                                                             GRAFSYS Page 32
  1422.  
  1423.  
  1424.                TICKLINE
  1425.  
  1426.                     Purpose:  Line attributes for tick marks.
  1427.  
  1428.                     Syntax:   TICKLINE w p c
  1429.  
  1430.                               w    Width of line
  1431.  
  1432.                               p    SOLID, DOTS, SHORTDASH, LONGDASH,
  1433.                                    DOTDASH, DOTDOTDASH, NONE
  1434.  
  1435.                               c    Color in user units.
  1436.  
  1437.                     Example:  TICKLINE 0.01 SOLID 1
  1438.  
  1439.                TITLETEXT
  1440.  
  1441.                     Purpose:  Attributes of title.
  1442.  
  1443.                     Syntax:   TITLETEXT h c
  1444.  
  1445.                               h    Height of character.
  1446.  
  1447.                               c    Color in user units.
  1448.  
  1449.                     Example:  TITLETEXT 0.1 1
  1450.  
  1451.                UPPERTICKS
  1452.  
  1453.                     Purpose:  Select whether or not to display tick marks
  1454.                               on the upper and right hand rulers when
  1455.                               "full" ruler box is selected.
  1456.  
  1457.                     Syntax:   UPPERTICKS YES|NO
  1458.  
  1459.                     See also: FULLBOX
  1460.  
  1461.                     Example:  UPPERTICKS YES
  1462.  
  1463.                ZEROAXIS
  1464.  
  1465.                     Purpose:  Draw x = 0 or y = 0 axes.
  1466.  
  1467.                     Syntax:   ZEROAXIS X|Y YES|NO
  1468.  
  1469.                     Example:  ZEROAXIS X NO
  1470.  
  1471.                                                             GRAFSYS Page 33
  1472.  
  1473.  
  1474.           IX. CHARACTER FONT
  1475.  
  1476.                A. Introduction
  1477.  
  1478.                     GRAFSYS uses a special built-in font, and can generate
  1479.                     all the stand ASCII characters, as well as the Greek
  1480.                     alphabet, mathematical, and other special symbols.  In
  1481.                     addition, there is a limited capability for subscripts
  1482.                     and superscripts.  The GRAFSYS font was designed to
  1483.                     resemble the font used in most plots in the Physical
  1484.                     Review journals.
  1485.  
  1486.                B. Typing Strings
  1487.  
  1488.                     Characters that don't appear on the keyboard are
  1489.                     referred to by putting the name between two backslash
  1490.                     characters.  Here are some examples:
  1491.  
  1492.                          Title of Plot
  1493.                          E = \hbar\\omega\.
  1494.                          E = mc\sup\2
  1495.  
  1496.                     If you misspell a character name, or forget a
  1497.                     backslash, then the unidentifiable character will be
  1498.                     rendered as a "nc" symbol.  This is a tiny "n" and "c"
  1499.                     in a single character cell.  
  1500.  
  1501.                C. List of special characters
  1502.  
  1503.                     UNIDENTIFIED CHARACTER
  1504.  
  1505.                          nc
  1506.  
  1507.                     UPPERCASE GREEK LETTERS 
  1508.            
  1509.                          UGamma 
  1510.                          UDelta 
  1511.                          UTheta 
  1512.                          ULambda 
  1513.                          Uxi 
  1514.                          UPi
  1515.                          USigma 
  1516.                          UUpsilon 
  1517.                          UPhi 
  1518.  
  1519.                     LOWERCASE GREEK LETTERS 
  1520.            
  1521.                          alpha
  1522.                          beta 
  1523.                          gamma 
  1524.                          delta 
  1525.  
  1526.                                                             GRAFSYS Page 34
  1527.  
  1528.  
  1529.                          epsilon         Little "E" 
  1530.                          varepsilon      Looks like backwards "3". 
  1531.                          zeta 
  1532.                          eta 
  1533.                          theta           O with bar across it. 
  1534.                          vartheta        "Script" theta. 
  1535.                          iota 
  1536.                          kappa 
  1537.                          lambda 
  1538.                          mu 
  1539.                          nu 
  1540.                          xi 
  1541.                          pi 
  1542.                          rho 
  1543.                          sigma 
  1544.                          tau 
  1545.                          upsilon 
  1546.                          phi             O with vertical bar. 
  1547.                          varphi          "Script" phi. 
  1548.                          chi 
  1549.                          psi 
  1550.                          omega 
  1551.  
  1552.                     MATHEMATICAL SYMBOLS 
  1553.            
  1554.                          approx          Squiggly "=" sign. 
  1555.                          cong            "=" sign with a squiggle over it. 
  1556.                          bullet          Filled in little circle. 
  1557.                          neqiv           Not equivalent. 
  1558.                          cents           Cents sign. 
  1559.                          owns            Backwards epsilon. 
  1560.                          nabla           "Del" operator. 
  1561.                          partial         Partial derivative operator. 
  1562.                          ell             Script "l" 
  1563.                          circ            Little circle, not filled. 
  1564.                          times           Little "x" for multiplication. 
  1565.                          parallel        Two vertical parallel bars. 
  1566.                          perp            Perpendicular sign. 
  1567.                          angle           Angle sign. 
  1568.                          therefore       Three dots. 
  1569.                          infinity        Lazy 8. 
  1570.                          ne              Not equal. 
  1571.                          equiv           Equivalent. 
  1572.                          leq             Less than or equal to. 
  1573.                          geq             Greater than or equal to. 
  1574.                          propto          Proportional to. 
  1575.                          rightarr        Right arrow. 
  1576.                          uparr           Up arrow. 
  1577.                          leftarr         Left arrow. 
  1578.                          downarr         Down arrow. 
  1579.                          rad             Radical sign. 
  1580.  
  1581.                                                             GRAFSYS Page 35
  1582.  
  1583.  
  1584.                          int             Integral sign. 
  1585.                          oint            Loop integral sign. 
  1586.                          dagger 
  1587.                          ddagger 
  1588.                          exists          Backwards "E" 
  1589.                          odot            Circle with dot inside it. 
  1590.                          bra             Like "<" but skinny. 
  1591.                          ket             Like ">" but skinny. 
  1592.                          pm              Plus/minus. 
  1593.                          mp              Minus/plus. 
  1594.                          div             Division sign. 
  1595.                          cdot            Centered dot for multiplication. 
  1596.  
  1597.                     OTHER POTENTIALLY USEFUL SYMBOLS 
  1598.            
  1599.                          spadesuit       "Spades" card suit. 
  1600.                          heartsuit       "Hearts" card suit. 
  1601.                          diamondsuit     "Diamonds" card suit. 
  1602.                          clubsuit        "Clubs" card suit. 
  1603.                          shamrock        For Notre Dame fans.
  1604.                          Quebec          Fleur de Li. 
  1605.                          backslash      \
  1606.                          diamond 
  1607.                          star 
  1608.                          square 
  1609.                          triangle 
  1610.                          circle 
  1611.                          ground 
  1612.                          greekcross 
  1613.                          crescent 
  1614.                          starofdavid 
  1615.  
  1616.                D. Subscripts and Superscripts
  1617.  
  1618.                     GRAFSYS has a rudimentary way of handling subscripts
  1619.                     and superscripts.  There are two special codes:
  1620.  
  1621.                          \sub\
  1622.                          \sup\
  1623.  
  1624.                     Sub moves the "pen" down 1/2 character height, and sup
  1625.                     moves it up 1/2 character height.  Hence, sub turns on
  1626.                     subscripts, and they can be turned back off by sup, and
  1627.                     vice versa.  Examples:
  1628.  
  1629.                          E = mc\sup\2
  1630.                          Drink plenty of H\sub\2\sup\O!
  1631.  
  1632.                                                             GRAFSYS Page 36
  1633.  
  1634.  
  1635.           X. DEVICE AND COLOR SUPPORT REFERENCE
  1636.  
  1637.                A. Introduction
  1638.  
  1639.                     This section documents the the differences in how
  1640.                     GRAFSYS handles the various devices.  Most users will
  1641.                     not need to use this section, unless they want to set
  1642.                     GRAFSYS up for color operation.
  1643.  
  1644.                B. Color Maps
  1645.  
  1646.                     GRAFSYS uses a color map scheme to improve user-
  1647.                     friendliness.  Each device renders color differently,
  1648.                     but after setting up the maps, the same integer will
  1649.                     specify the same color, regardless of device.
  1650.  
  1651.                     The basic syntax of the COLORMAP command is as follows:
  1652.  
  1653.                          COLORMAP dev n r
  1654.  
  1655.                          dev  SCRN, HP, POST, DMP
  1656.  
  1657.                          n    "User" color value, from 0 to 15.
  1658.  
  1659.                          r    "Device" color value.
  1660.  
  1661.                     The user value is the number used in other GRAFSYS
  1662.                     commands, such as AXISLINE.  The device value is the
  1663.                     number which is actually sent to the device, and may be
  1664.                     an integer or real.
  1665.  
  1666.                     If you define a user color for one device, you must
  1667.                     define it for all devices.  There are no defaults for
  1668.                     color maps.
  1669.  
  1670.                C. Device Support
  1671.  
  1672.                     1. Screen
  1673.  
  1674.                          The screen driver supports color fully.  Device
  1675.                          color values are integers, and depend on which
  1676.                          graphics card you have.  If you have a Hercules
  1677.                          card, you must be careful about how to use the
  1678.                          BACKGROUND and MENUCOLOR commands.  When in the
  1679.                          text mode, colors are interpreted as text
  1680.                          attributes, such as underline.  Always refer to
  1681.                          the documentation for your screen hardware.
  1682.  
  1683.                          The screen driver does not support variable pen
  1684.                          width.  All lines will be drawn one pixel wide.
  1685.  
  1686.                                                             GRAFSYS Page 37
  1687.  
  1688.  
  1689.                     2. HP-GL
  1690.  
  1691.                          Device color values are integer pen numbers. 
  1692.                          GRAFSYS does not know how many pens your
  1693.                          particular plotter has.
  1694.  
  1695.                          The HP driver does not variable pen width,
  1696.                          although pens with different tip sizes may be
  1697.                          loaded into the carousel, and selected as
  1698.                          different "colors."  The PrintGL also has a
  1699.                          facility for turning pen numbers into pen widths
  1700.                          for raster devices like the LaserJet.
  1701.  
  1702.                     3. Postscript
  1703.  
  1704.                          Device color values are reals from 0 to 1, and are
  1705.                          interpreted as gray scales.  0 corresponds to
  1706.                          "black" and 1 is white, or whatever color paper
  1707.                          you put in.
  1708.  
  1709.                          Variable pen width is supported.
  1710.  
  1711.                     4. Dot-matrix
  1712.  
  1713.                          No color is supported.  The background is always
  1714.                          white and foreground black.  To permit a black
  1715.                          background would destroy your print head very
  1716.                          quickly.
  1717.  
  1718.                          Variable pen width is not supported.  All lines
  1719.                          are drawn one pixel wide.  PrintGL has a dot
  1720.                          matrix print driver which supports variable pen
  1721.                          width.
  1722.  
  1723.           XI. PRINTGL SOFTWARE AND THE LASERJET
  1724.  
  1725.                GRAFSYS supports only a limited number of hardcopy output
  1726.                devices, and in particular does not support the HP LaserJet,
  1727.                which is the most popular laser printer for PC- and MS-DOS
  1728.                computers.  GRAFSYS is bundled with a Shareware package
  1729.                called PrintGL.  Since the entire PrintGL package is
  1730.                included, you can distribute it along with GRAFSYS.  If,
  1731.                after evaluating PrintGL, you decide to use it, you should
  1732.                pay the registration fee.
  1733.  
  1734.                A. Install the Software
  1735.  
  1736.                     The PrintGL software is contained in the archive file
  1737.                     called PRINTGL.ZIP  The section above on installation
  1738.                     describes how to unzip a ZIP file.  You should also
  1739.                     unpack GPRINT.ZIP, which is inside UTILITY.ZIP.
  1740.  
  1741.                                                             GRAFSYS Page 38
  1742.  
  1743.  
  1744.                B. Create a GRAFSYS Plot
  1745.  
  1746.                     Create a GRAFSYS plot, and plot to a file, selecting
  1747.                     HP-GL as the output format.  These examples will assume
  1748.                     that you have named the file OUT.PLT, but you could
  1749.                     substitute any other name.  Now exit GRAFSYS.
  1750.  
  1751.                C. Run GPRINT
  1752.  
  1753.                     GRAFSYS comes with a program called GPRINT.EXE which
  1754.                     provides menu-driven control of PrintGL.  Just type:
  1755.  
  1756.                          GPRINT
  1757.                     or
  1758.  
  1759.                          GPRINT OUT.PLT
  1760.  
  1761.                     GPRINT will allow you to select the target output
  1762.                     device and resolution, then will run PrintGL for you.
  1763.  
  1764.                D. Other Features
  1765.  
  1766.                     PrintGL can also be run on its own.  It has more
  1767.                     features than I could possibly do justice to here.  You
  1768.                     are encouraged to read the documentation file
  1769.                     PRINTGL.DOC.  This is a very fine piece of work.
  1770.  
  1771.                                                             GRAFSYS Page 39
  1772.  
  1773.  
  1774.           XII. FGRAPH MATHEMATICAL FUNCTION GRAPHING PROGRAM
  1775.  
  1776.                A. Introduction
  1777.  
  1778.                     FGRAPH is a simple utility for plotting math functions. 
  1779.                     It acts as a "shell" around GRAFSYS, by producing a
  1780.                     GRAFSYS plot file, running GRAFSYS, and then returning
  1781.                     to FGRAPH again.  Thus, you can type in a function,
  1782.                     look at its graph, then edit it again for another try. 
  1783.  
  1784.                     FGRAPH has a built-in symbolic expression parser and
  1785.                     evaluator, so that no compiler is needed to use it.  It
  1786.                     has a one-screen menu, with a small handful of options
  1787.                     for setting plot limits, and saving and loading files.
  1788.  
  1789.                B. Running FGRAPH
  1790.  
  1791.                     To run FGRAPH just type:
  1792.  
  1793.                          FGRAPH
  1794.  
  1795.                C. Expression Syntax
  1796.  
  1797.                     Just about any expression which you would type in, say,
  1798.                     BASIC, Pascal, or FORTRAN, is allowed in FGRAPH.  Here
  1799.                     are some examples:
  1800.  
  1801.                          1 + x*2*(3 - x)
  1802.                          1 + sqrt(x)
  1803.                          exp(-sqr(x))
  1804.                          (3 + x)*(4 - x)
  1805.                          2^x
  1806.  
  1807.                     Note that the carat (^) denotes exponentiation.  Do not
  1808.                     use the double-star (**) for this.  There is no limit
  1809.                     to the level of parentheses, until you run out of the
  1810.                     32K "stack" space for the program.  This is unlikely. 
  1811.                     The maximum length of the expression is 255 characters.
  1812.  
  1813.                     Exponentiation (^) is not associative.  For instance,
  1814.                     1^2^3 is not ambiguous, since (1^2)^3 is not equal to
  1815.                     1^(2^3).  An expression like a^b^c will cause an error
  1816.                     message in FGRAPH.  However a^(b^c) is OK, since there
  1817.                     is no ambiguity.
  1818.  
  1819.                     The following functions are supported:
  1820.  
  1821.                          sqr(x)    Square of x.
  1822.                          sqrt(x)   Square root of x.
  1823.  
  1824.                          exp(x)    Exponential of x (e^x).
  1825.  
  1826.                                                             GRAFSYS Page 40
  1827.  
  1828.  
  1829.                          ln(x)     Natural logarithm of x.
  1830.                          log(x)    Common or base-10 logarithm of x.
  1831.  
  1832.                          sin(x)    Sine of x (x in radians).
  1833.                          cos(x)    Cosine of x.
  1834.                          tan(x)    Tangent of x.
  1835.  
  1836.                          arcsin(x) Inverse sine of x, in radians.
  1837.                          arccos(x) Inverse cosine of x.
  1838.                          arctan(x) Inverse tangent of x.
  1839.  
  1840.                          abs(x)    Absolute value of x.
  1841.                          sgn(x)    "Signum" function:
  1842.                                         sgn(x > 0) = 1
  1843.                                         sgn(0) = 0
  1844.                                         sgn(x < 0) = -1
  1845.                          int(x)    Greatest integer less than or equal to
  1846.                                    x.
  1847.  
  1848.                                                             GRAFSYS Page 41
  1849.  
  1850.  
  1851.           XIII. WARRANTY DISCLAIMER
  1852.  
  1853.                GRAFSYS is not intended to be a consumer product.  It is
  1854.                distributed with no warranty, express or implied.  As a
  1855.                professional, you are fully responsible for what you
  1856.                publish.  Use of this product acknowledges that you have
  1857.                sufficient competence to evaluate the output of the GRAFSYS
  1858.                program, and determine its suitability for publication or
  1859.                other use.  The user must bear all responsibility for direct
  1860.                or indirect consequences of use of GRAFSYS.  
  1861.  
  1862.                The author of GRAFSYS disclaims all warranties, express or
  1863.                implied, including, without limitation, the warranties of
  1864.                merchantability and of fitness of this product for any
  1865.                purpose.  The author assumes no liability for damages direct
  1866.                or consequential, which may result from use of this program,
  1867.                including loss of data or any other reason.  In no event
  1868.                shall the author's liability for any damages ever exceed the
  1869.                price paid for the license to use software, regardless of
  1870.                the form of the claim.  The person using the software bears
  1871.                all risk as to the quality and performance of the software.
  1872.  
  1873.           XIV. TRADEMARKS AND ACKNOWLEDGEMENTS
  1874.  
  1875.                This documentation makes reference to the following
  1876.                companies' trademarks:
  1877.  
  1878.                Epson:  Epson America
  1879.                HP, LaserJet:  Hewlett-Packard Corp.
  1880.                LaserWriter, Apple:  Apple Computer
  1881.                MS-DOS:  Microsoft
  1882.                Postscript:  Adobe Corp.
  1883.                Hercules:  Hercules Corp.
  1884.                IBM:  IBM Corp.
  1885.                Designer:  Micrografx Corp.
  1886.  
  1887.                Although GRAFSYS uses a P.O. Box at the Notre Dame, Indiana
  1888.                post office, the GRAFSYS business is not affiliated in any
  1889.                way with the University of Notre Dame du Lac.  The GRAFSYS
  1890.                business receives no material support from the University.
  1891.  
  1892.                                   GRAFSYS ORDER FORM
  1893.  
  1894.           Remit to:                     From:______________________________
  1895.  
  1896.           Francis J. Deck               Address:___________________________
  1897.           P.O. Box 611
  1898.           Notre Dame, IN 46556-0611     ___________________________________
  1899.  
  1900.                                         ___________________________________
  1901.  
  1902.           _________________________________________________________________
  1903.  
  1904.           Quantity  Item                          Unit Price:    Extended:
  1905.           ________  ____                          ___________    _________
  1906.  
  1907.                     GRAFSYS Software License,
  1908.           ________  Standard Price                $35.00         _________
  1909.  
  1910.                     GRAFSYS Software License,
  1911.           ________  Student Price*                $15.00         _________
  1912.  
  1913.                     GRAFSYS Distribution Disk,
  1914.           ________  without license.              $15.00         _________
  1915.  
  1916.  
  1917.                                                   Sub Total:     _________
  1918.  
  1919.                     If applicable, add 5% of sub-total for
  1920.                     Indiana sales tax:                           _________
  1921.  
  1922.  
  1923.                                                   Total:         _________
  1924.  
  1925.           * To qualify for the student price, you must supply the name of
  1926.             your educational institution and student number.
  1927.  
  1928.           Disk size:  3.5"_______ 5.25"_______
  1929.  
  1930.           Name of School:_________________________________________________
  1931.  
  1932.           Student Number:_________________________________________________
  1933.  
  1934.           Make checks payable to:  Francis J. Deck
  1935.  
  1936.           Terms:  Personal check or money order for U.S. funds payable
  1937.           through a U.S. bank.  Purchase orders (net 30) are accepted from
  1938.           schools, government, and businesses in U.S. and Canada.  You will
  1939.           be sent a diskette containing the latest version of GRAFSYS. 
  1940.           Please indicate preferred disk size above.
  1941.  
  1942.           Site licenses are available for GRAFSYS.  See GRAFSYS.DOC.
  1943.