home *** CD-ROM | disk | FTP | other *** search
/ TopWare 18: Liquid / Image.iso / liquid / top1184 / gepackt.exe / GRAPHICA.DOC < prev    next >
Encoding:
Text File  |  1994-02-22  |  26.9 KB  |  819 lines

  1.  
  2. GRAPHICA v2.5
  3. A System for Drawing Scientific Graphs
  4.  
  5. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  6.  
  7. User's Manual
  8.  
  9. by Antonio Montes
  10.  
  11. 22 February 1994
  12.  
  13.  
  14. (C) Copyright 1992-94 Antonio Montes.
  15. Portions (C) Copyright 1992 Borland International.
  16.  
  17. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  18.  
  19. If you like this program, you can send a contribution to the address
  20. near the end of this file.  Contributors to the development of
  21. Graphica are entitled to mail support, a copy of the latest version,
  22. and 10 additional software fonts.  Please tell me the version number
  23. of your copy of Graphica when you send in your contribution.  My
  24. address can be found near the end of this file.
  25.  
  26.  
  27. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  28.  
  29.  
  30. MANUAL SUMMARY
  31. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  32.  
  33. Chapter 1: INTRODUCTION  Contains information concerning
  34.            installation and hardware requirements.
  35.  
  36. Chapter 2: GETTING STARTED  Defines the fundamental elements
  37.            common to all plots, defines the manual usage
  38.            and presents a description of the command syntax.
  39.  
  40. Chapter 3: TUTORIAL  Takes the user through a series of
  41.            short lessons to get familiar with Graphica.
  42.  
  43. Chapter 4: COMMAND LIST  Gives a list of all the commands
  44.            understood by Graphica.
  45.  
  46. BUG REPORTING
  47. CONTRIBUTIONS
  48.  
  49.  
  50. TABLE OF CONTENTS
  51. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  52.  
  53. Chapter 1. INTRODUCTION
  54.  
  55.           1.1  Overview
  56.           1.2  Disclaimer
  57.           1.3  Files
  58.           1.4  Equipment Requirements
  59.           1.5  Installation
  60.  
  61. Chapter 2  GETTING STARTED
  62.  
  63.           2.1  Overview
  64.           2.3  Document Conventions
  65.           2.3  Starting Up and Exiting
  66.           2.4  For Beginners
  67.           2.5  Errors
  68.  
  69. Chapter 3  TUTORIAL
  70.  
  71.           3.1  Introduction
  72.           3.2  Entering Commands
  73.           3.3  Plotting Functions
  74.           3.4  Plotting Data
  75.           3.5  Plotting Data Files
  76.           3.6  Plotting Parametric Curves
  77.           3.7  Using Script Files
  78.           3.8  Multiple Graphs on one Page
  79.           3.9  Importing Graphica Plots into WordPerfect
  80.  
  81. Chapter 4  COMMAND LIST
  82.  
  83.  
  84. Chapter 1  INTRODUCTION
  85. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  86.  
  87. 1.1  Overview
  88. ─────────────
  89.  
  90. Graphica is a command-driven interactive graphics program for
  91. making presentation quality graphs on a computer.  This two-
  92. dimensional data plotting system is designed specifically for
  93. scientific and engineering applications.  Graphica is SHAREWARE,
  94. i.e. it's user-supported.  Graphica is easy to use, interactive,
  95. and powerful.  With Graphica, you can:
  96.  
  97.      o   plot functions or data
  98.      o   evaluate and plot mathematical expressions
  99.      o   fit spline or polynomials to data
  100.      o   display and print a graph on hardcopy devices
  101.      o   export graphs to HPGL, LaserJet, PostScript, etc.
  102.      o   draw text in roman, greek and cyrillic fonts
  103.      o   get online help
  104.  
  105.  
  106. 1.2  Disclaimer
  107. ───────────────
  108.  
  109. The authors have made their best effort in producing this
  110. software, but hereby disclaim all warranties.  The authors will
  111. not be liable for any damages arising from the use or misuse of
  112. Graphica.  The person using the software bears all risk as to
  113. the quality and performance of the software.  The program is
  114. provided as is.
  115.  
  116.  
  117. 1.3  Files
  118. ──────────
  119.  
  120. Graphica consists of the following files:
  121.  
  122.  
  123. GRAPHICA.EXE     main program (executable)
  124. GRAPHICA.FIL     help file (text file-may be printed)
  125. YY*.BIN          binary font files (anywhere in the DOS path)
  126. README.1ST       quick instructions (this file)
  127.  
  128. DOCS.ZIP         archive containing:
  129.   GRAPHICA.DOC   short user's tutorial
  130.   REGISTER.DOC   contribution information
  131.   ORDERFRM.DOC   order form
  132.   HISTORY.DOC    log of latest changes and improvements
  133.   SHAREWRE.DOC   about shareware
  134.   GRAPHICA.ICO   icon you can use with Microsoft Windows
  135.  
  136. EXAMPLES.ZIP     another archive containing example:
  137.   *.PLT          script files
  138.   *.DAT          data files
  139.  
  140.  
  141. 1.4  Equipment Requirements
  142. ───────────────────────────
  143.  
  144. Graphica normally detects automatically what graphics monitor
  145. hardware is present in order to preview graphs.  In general,
  146. you basically need the following items:
  147.  
  148.           Computer:          IBM PC,XT,AT or compatibles
  149.  
  150.           Disk Drives:       2 floppy drives or 1 floppy drive/hard drive
  151.  
  152.           Memory:            640K Bytes
  153.  
  154.           Video Cards:       CGA, EGA, VGA or compatible adapter
  155.                              Hercules Monochrome Adapter or compatible
  156.  
  157.           Hardcopy:
  158.           - Plotters         HP7475A or HPGL compatible
  159.           - Printers         Epson 80 and 100 series
  160.                              Panasonic 1080i or equivalent
  161.  
  162.           Other Output:      PIC
  163.                              HPGL
  164.                              PostScript
  165.                              HP LaserJet II, 4
  166.  
  167.  
  168. 1.5  Installation
  169. ─────────────────
  170.  
  171. There are no special installation requirements.  The simplest
  172. procedure is to make a new directory on your hard disk, and to
  173. copy all of the files there.  You may wish to put the Graphica
  174. directory on your path, or to copy the files to a RAM disk.
  175.  
  176. Let's suppose you wish to install Graphica into a directory
  177. called GRAPH.  To create the directory, simply do the following:
  178.  
  179.           C:\md graph
  180.           C:\cd graph
  181.  
  182. If you have changed your system prompt with $P$G (as part of
  183. your AUTOEXEC.BAT file, for example), the prompt should show:
  184.  
  185.           C:\GRAPH> 
  186.  
  187. Graphica should have been distributed as one file, called
  188. GRPHCAxx.ZIP or GRPHxx.ZIP, where xx is the version number.
  189. All files will have to be extracted with PKUNZIP or an
  190. equivalent program on the command line.  Do:
  191.  
  192.           C:\GRAPH> pkunzip grphcaxx
  193.  
  194. All the files will be put in this directory and now you are
  195. ready to start graphing.
  196.  
  197.  
  198. Chapter 2  GETTING STARTED
  199. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  200.  
  201. 2.1  Overview
  202. ─────────────
  203.  
  204. Graphica is an interactive computer program which accepts
  205. English sentence specifications of graphs, and, from those
  206. specifications, produces publication quality pictures.  This
  207. manual describes how to use Graphica.  The specifications that
  208. the user provides are referred to as "commands" or "statements".
  209.  
  210. Final graphs are of publication quality and may be fitted to
  211. pages with existing text thereby eliminating costly reproduc-
  212. tions (photocopying and reduction).
  213.  
  214. The user operates the program through a set of problem oriented
  215. language (POL) commands.  Each command consists of keywords and
  216. data values separated by blanks or commas.  This requires
  217. minimum data input and enables simple and efficient graphing.
  218. For example, if the user enters:
  219.  
  220.           map x 0,10 y 0,100
  221.  
  222. Graphica determines that the user wants the x-axis range set from
  223. 0 to 10 and the y-axis range set from 0 to 100.  The user must
  224. separate entities in a command with blanks or commas.  In this
  225. manual, blanks are not explicitly indicated.
  226.  
  227. Graphica capabilities include:
  228.  
  229.           - multiple curve plotting and graphs
  230.           - axis drawing with labels and scaled divisions
  231.           - log-log, semilog, probability and linear plots
  232.           - graph titles and legends
  233.           - lettering in five fonts and different sizes
  234.           - hardware and software character generation
  235.           - 3 units of measure (in, cm, mm)
  236.  
  237.  
  238. 2.3  Document Conventions
  239. ─────────────────────────
  240.  
  241. Input to Graphica is in the form of a problem oriented language
  242. (POL) designed specifically for graphing purposes.  The
  243. following is a description of the conventions used within the
  244. manual to explain Graphica commands.
  245.  
  246. The appearance within a Graphica command of a descriptor of the
  247. form <integer>  implies that the user is to enter an item of data
  248. within that position in the statement of the class described by
  249. the descriptor (in the above example, an integer).  The command
  250.  
  251.           divisions x <integer> ,<integer> 
  252.  
  253. implies that the word divisions is to be followed by the word x
  254. and two integers such as 2 or 3, and that the statement entered
  255. by the user as input data should be of the form
  256.  
  257.           divisions x 2,2
  258.  
  259. The following are definitions of most of the descriptors used
  260. within the language.  Those not described below are ex- plained
  261. when they first occur in the text.
  262.  
  263. <integer>  a series of digits optionally preceeded by a plus or a
  264.           minus sign.  Examples are 121, +300, -410.
  265.  
  266. <real>  a series of digits with a decimal point included, or a
  267.           series of digits with a decimal point followed by an
  268.           exponent indicating a power of 10.  Real numbers may be
  269.           optionally signed.  Examples are 1.0, -2.5, 3.6E+10.
  270.  
  271. <value>  is either an integer or a real number.
  272.  
  273. 'string' is any textual information enclosed within a pair of
  274.           apostrophes (') or quotes (").  An example is 'Are you 
  275.           following this so far?'
  276.  
  277. As noted above, input to Graphica is a series of English- like
  278. commands.  Many of the words or phrases in these commands are
  279. optional and are permitted primarily for readability or are used
  280. to specify options within a command.  The curly braces {} denote
  281. these optional items.
  282.  
  283. Each command is entered on a new line.  Commands can be entered
  284. in lower case, upper case, or both.  Only the first significant
  285. characters of a command are needed.  A line starting with a left
  286. square bracket [ or a # will be treated as a comment line.
  287. Also, anything after those two characters in a line will be
  288. treated as a comment (see section 5.5).
  289.  
  290. Items such as <integer>  shown in the command definitions must
  291. always be replaced by an integer.  Undesignated items such as
  292. <minimum> , <maximum> , etc. can be replaced by either an integer
  293. or a real.  For example,
  294.  
  295.           divisions x2 <integer> ,<integer> 
  296.  
  297. can be specified as
  298.  
  299.           div x2 3 2
  300. whereas
  301.           map x <minimum value>  <maximum value> 
  302.  
  303. can be entered as
  304.  
  305.           map x 20 30
  306. or
  307.           map x 20.0 30.0
  308.  
  309. Sometimes keywords in a command line can be entered in any order
  310. (except the very first one, of course).  For instance,
  311.  
  312.           plot add x connect y
  313.  
  314. will plot the X/Y data connecting all points and adding symbols.
  315.  
  316. In many commands, items may be repeated or more than one word is
  317. acceptable in a given position within a command.  The choices
  318. are listed enclosed in curly brackets '{}'.  For example, the
  319. command definition
  320.  
  321.           draw {x} {y} {x2} {y2} {mask} {reflect}
  322.  
  323. indicates that the user may enter commands like
  324.  
  325.           draw x reflect y2 reflect
  326.           draw x y
  327.           draw y reflect x2 mask.
  328.  
  329. Similarly,
  330.  
  331.           paper {size} <horizontal value>  {by} <vertical value> 
  332.  
  333. can be written as
  334.  
  335.           paper size 11.0 by 8.5
  336.           pap 11.0 8.5
  337. or
  338.           paper 11 by 8.5
  339.  
  340. In order to be more descriptive within the command definitions,
  341. actual data items (items enclosed within '<> ') are sometimes
  342. described in terms of their physical meaning and followed by the
  343. type or class of data item which can be used in the command.
  344. For example, a command definition of the form
  345.  
  346.           load {from} {file} <filename> 
  347.  
  348. implies that the data item following the word input is the name
  349. of a file.  For example, acceptable commands would be
  350.  
  351.           load myfile.p
  352.           load from 'graph.dat'
  353.  
  354.  
  355. 2.3  Starting Up and Exiting
  356. ────────────────────────────
  357.  
  358. Graphica can be run from any directory as long as GRAPHICA.EXE
  359. is placed in the directory search path.  To start the plotting
  360. system, simply type graphica at the DOS prompt:
  361.  
  362.           C:\graphica
  363.  
  364. Graphica takes a few seconds to load into memory, and when the
  365. >  prompt is displayed, the program is ready for your
  366. input.  To exit, type quit or exit at the Graphica command
  367. level.
  368.  
  369.           > quit
  370.  
  371. and you're back at the DOS prompt.
  372.  
  373.  
  374. 2.4  For Beginners
  375. ──────────────────
  376.  
  377. For a quick demonstration of Graphica's main capabilities, run
  378. Graphica and then load some of the sample script files (*.PLT).
  379. For example,
  380.  
  381.           C:\GRAPH\graphica (press return)
  382.           > load 'demo1' (press return)
  383.  
  384. Alternatively, command-line arguments may be names of files
  385. containing Graphica commands.  Then, for example,
  386.  
  387.           C:\GRAPH\graphica demo1
  388.  
  389. is another way of running this demonstration.
  390.  
  391.  
  392. 2.5  Errors
  393. ───────────
  394.  
  395. Error messages are self-explanatory.  If an error is detected
  396. while parsing a command or a script file, Graphica will inform
  397. you with a beep and message.
  398.  
  399.  
  400. CHAPTER 3  TUTORIAL
  401. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  402.  
  403. 3.1  Introduction
  404. ─────────────────
  405.  
  406. Welcome to the Graphica tutorial.  A plot is a graphic image
  407. used to present information in a visual manner.  The components
  408. of a graphic image are:  lines, markers, text strings, polygons,
  409. etc.  The basic ingredients of a plot are:  a page, a subplot
  410. area and data points.  The data points are plotted using
  411. symbols, characters or simple dots.  Data points and curves are
  412. drawn or plotted on a grid space formed by Cartesian coordinate
  413. axes.  The horizontal line is the x-axis and the vertical line,
  414. the y-axis.
  415.  
  416. A graph is made with Graphica by either loading an existing
  417. script file from the disk, or by creating a new graph through
  418. the command line.  This section explains how to create graphs.
  419.  
  420. All commands may be abbreviated, as long as the abbreviation is
  421. not ambiguous.  Any number of commands may appear on a line,
  422. separated by semicolons.  A file is loaded with the load command.
  423.  
  424. Commands may extend over several input lines, by ending each
  425. line but the last with a backslash (\).  The backslash must be
  426. the last character on each line.  The effect is as if the
  427. backslash and newline were not there.  Commenting out a
  428. continued line comments out the entire command.
  429.  
  430.  
  431. 3.2  Entering Commands
  432. ──────────────────────
  433.  
  434. For help on any topic, type help followed by the name of the
  435. topic at the >  prompt.
  436.  
  437. Let's get started.  Let's assume that you have copied all the
  438. Graphica files in a directory called GRAPH.  Start Graphica by
  439. entering graphica at the DOS prompt and pressing return:
  440.  
  441.           C:\GRAPH> graphica
  442.  
  443. The screen will clear, there will be a brief notice and you'll
  444. be at the >  prompt:
  445.  
  446.           > 
  447.  
  448. Now you are about to begin making scientific graphs.
  449.  
  450. The plot command is the heart of Graphica.  It is used to plot
  451. data, functions and datafiles.  We will be using it a lot in the
  452. next few pages.
  453.  
  454. Anytime you are ready to type in the next Graphica command and
  455. your screen shows a plot (in other words, you are in graphics
  456. mode), just press any key or start typing the command in.  At
  457. the >  prompt, you can always type show to have a look at
  458. what you have plotted on the screen so far.
  459.  
  460.  
  461. 3.3  Plotting Functions
  462. ───────────────────────
  463.  
  464. To plot a sine wave, enter the following command at the
  465. >  prompt:
  466.  
  467.           > plot sin(x)
  468.  
  469. Within a few seconds, a graph of sin(x) as a function of x will
  470. be plotted.  Press any key and then enter:
  471.  
  472.           > draw x y
  473.  
  474. The x and y axes will be drawn.  The x axis will range from -10
  475. to 10, since that is the default range.
  476.  
  477. You can plot functions that have singularities.  Graphica will
  478. try to choose the appropriate y scale.  Enter:
  479.  
  480.           > clear
  481.  
  482. to sort of clear your graphics slate.  Then enter:
  483.  
  484.           > sampling 300
  485.           > plot tan(x)
  486.  
  487. The sampling command simply tells Graphica that we would like to
  488. plot more points of the function that the default of 150.  After
  489. that, the plot command plots the function.  To draw the axes, do:
  490.  
  491.           > draw x y
  492.  
  493. You can give a list of functions to plot all at once.  Go ahead
  494. and clear everything by entering:
  495.  
  496.           > clear
  497.  
  498. Then, map the x-axis with the following command:
  499.  
  500.           > map x 0 2*pi
  501.  
  502. To actually plot the functions, enter:
  503.  
  504.           > plot sin(x), sin(2*x), sin(3*x)
  505.  
  506. And to draw the axes:
  507.  
  508.           > draw x y
  509.  
  510. Graphica always tries to plot functions as smooth curves.  As a
  511. result, in places where your function wiggles a lot, you may
  512. adapt Graphica's sampling of your function to the form of the
  513. function (we did that by giving the sampling command at the
  514. beginning of this section.)  Since Graphica can only sample
  515. your function at a limited number of points, it can sometimes
  516. miss features of the function.  By increasing sampling, you can
  517. make Graphica sample your function at a larger number of points.
  518. Of course, the larger you set sampling to be, the longer it will
  519. take Graphica to plot any function, even a smooth one.
  520.  
  521. The function sin(1/x) wiggles infinitely often when x is near
  522. zero.  Graphica can never sample the infinite number that it
  523. would need to reproduce the function exactly.  As a result,
  524. there are slight glitches in the plot.  Go ahead and try it:
  525.  
  526.           > clear
  527.           > map x -1,1
  528.           > plot sin(1/x)
  529.           > draw x y
  530.  
  531. Now you have seen how to plot functions.  See section 5.1 for a
  532. more detailed explanation about mathematical expressions.
  533.  
  534.  
  535. 3.4  Plotting Data
  536. ──────────────────
  537.  
  538. You may combine two Graphica commands, plot and data, to plot
  539. data points.  For example:
  540.  
  541.           > clear
  542.           > data
  543.           data> 2 3
  544.           data> 5 4
  545.           data> 6 4
  546.           data> 7 5
  547.           data> 5 3
  548.           data> end
  549.           > plot x y add
  550.           > draw x y
  551.  
  552. This sequence of commands will result in a simple graph with
  553. both axis autoscaled.  See the map command for more details on
  554. how to change the x-axis scale in the plot.
  555.  
  556.  
  557. 3.5  Plotting Data Files
  558. ────────────────────────
  559.  
  560. Data may also be plotted by retrieving the information from a
  561. data file.  There are a couple of ways of doing this.  The first
  562. is by simply specifying:
  563.  
  564.           > clear
  565.           > data 'bob.dat'
  566.  
  567. where bob.dat contains 3 columns of numbers.  To plot the
  568. data, you can do:
  569.  
  570.           > plot data
  571.  
  572. which will plot the first 2 columns.  To draw the axes:
  573.  
  574.           > draw x y
  575.  
  576. Using the other method, you can plot a datafile directly:
  577.  
  578.           > clear
  579.           > plot 'bob.dat'
  580.  
  581. and now the axes:
  582.  
  583.           > draw x y
  584.  
  585. The first method allows you to read in several columns of data
  586. and then choose which one will be plotted (see column in the
  587. reference section.)  By default, specifying plot data simply
  588. plots the first two columns of data as x versus y.
  589.  
  590.  
  591. 3.6  Plotting Parametric Curves
  592. ───────────────────────────────
  593.  
  594. In a parametric plot, you give both the x and y coordinates of
  595. each point as a function of a third parameter, say t.
  596.  
  597. Let us construct a parametric plot.  In this example, the
  598. parametric curve made by taking the x coordinate of each point
  599. to be sin(t) and the y coordinate to be sin(2*t):
  600.  
  601.           > clear
  602.           > parametric plot t 0,2*pi sin(t) sin(2*t)
  603.           > draw x y
  604.  
  605.  
  606. 3.7  Using Script Files
  607. ───────────────────────
  608.  
  609. Every graph in this documentation can be readily reproduced from
  610. the script files provided in the Graphica package.  A script
  611. file is simply a text file containing valid Graphica commands.
  612. The script file can be executed by the load or input command.
  613. The name of the input file must be enclosed in single or double
  614. quotes:
  615.  
  616.           > clear
  617.           > load 'torp.plt'
  618.  
  619.  
  620. 3.8  Multiple Graphs on one Page
  621. ────────────────────────────────
  622.  
  623. With Graphica, you may plot as many graphs on one page as you
  624. wish by changing the subplot area.  Try this:
  625.  
  626.           > clear
  627.           > load 'rocha.plt'
  628.  
  629. Several axes have been defined, x and y axes with labels, a y2
  630. axis without labels, etc.  The data shown is actual experimental
  631. data obtained by a doctoral student and the graph is part of his
  632. dissertation.
  633.  
  634. You may now quit Graphica by typing exit at the >  prompt.
  635.  
  636.  
  637. 3.9  Importing Graphica Plots into WordPerfect
  638. ──────────────────────────────────────────────
  639.  
  640. This document was prepared using WordPerfect 5.1.  The plots
  641. were produced with Graphica, exported using HPGL output and
  642. imported into WordPerfect.  Once a graphic has been imported
  643. into WordPerfect, you can move it, scale it, rotate it, add
  644. captions, etc.  Let's create a graph with Graphica and retrieve
  645. it into a WordPerfect document step by step.
  646.  
  647. There is a file in your distribution disk called ris108.plt.
  648. Start Graphica:
  649.  
  650.           C:\GRAPH> graphica
  651.  
  652. and load the script file:
  653.  
  654.           > load 'ris108.plt'
  655.  
  656. The screen will clear and a plot will be drawn.  In fact, this
  657. plot makes use of font 5 (complex cyrillic).  The graph was
  658. created after one in a russian text dealing with petroleum
  659. chemistry (I thought it might draw your attention).
  660.  
  661. Now press any key and enter:
  662.  
  663.           > dump hpgl 'ris108.hpg'
  664.  
  665. The dump command will create a file called ris108.hpg containing
  666. HPGL commands.  You may later send this file to a plotter or
  667. pull it into any of the many programs that accept HPGL commands.
  668. Now, exit Graphica by typing:
  669.  
  670.           > quit
  671.  
  672. and start WordPerfect:
  673.  
  674.           C:\GRAPH> wp
  675.  
  676. When the screen clears, do the following:
  677.  
  678.           1) press Alt-F9 (for the graphics menu)
  679.           2) type 1 (for figure)
  680.           3) select 1 (for create)
  681.           4) select 1 (for filename)
  682.           5) enter ris108.hpg (to read the file in, no quotes)
  683.  
  684. WordPerfect will retrieve the HPGL information into a graphic
  685. box immediately.  You can edit the graph further within the
  686. graphics menu:
  687.  
  688.           6) press 9 (for edit)
  689.  
  690. or simply view the graph:
  691.  
  692.           7) press F7 (to exit the graphics menu)
  693.           8) press shift-F7 (for print)
  694.           9) press 6 (for view document)
  695.  
  696. and you have successfully imported a Graphica plot into a
  697. WordPerfect document.
  698.  
  699.  
  700. CHAPTER 4  COMMAND LIST
  701. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  702.  
  703. This chapter gives an alphabetical lookup for all the Graphica
  704. built-in commands.  Here are all the supported commands:
  705.  
  706.  
  707. ARROW                  Plot an Arrow at the End of a Line
  708. AUDIT                  Set Command Trace
  709. AUTOSCALE              Set Axis Autoscaling
  710. BACKGROUND             Specify Background Color
  711. BEEP                   Turn beep on and off
  712. CHARACTER              Set Character Attributes
  713. CHARACTER FONT         Change the Character Font
  714. CHARACTER GAP          Change the Character Gap
  715. CHARACTER RATIO        Change the Character Ratio
  716. CHARACTER SIZE         Change the Character Size
  717. CHARACTER SLANT        Set the Character Slant
  718. CD                     Change the Working Directory
  719. CIRCLE                 Draw a Circle
  720. CLC                    Clear Text Screen
  721. CLEAR                  Erase Output Device
  722. COLUMN                 Assign Data Columns to Axes
  723. DATA                   Read Data from Terminal or a File
  724. DEL                    Delete a file
  725. DIGITIZE               Establish an x-y position
  726. DIR                    List a directory
  727. DIVISIONS              Set Number of Axis Divisions
  728. DRAW                   Draw an Axis
  729. DUMMY                  Specify Dummy Variable
  730. DUMP                   Generate Hardcopy Output
  731. ECHO                   Echo Typed Commands
  732. EXIT                   Exit Graphica
  733. EXPONENT               Select Format in Log Labels
  734. FORMAT                 Specify Axis Label Formats
  735. FRAME                  Draw a Frame
  736. FUNCTIONS              Show Functions
  737. GRID                   Draw a Grid
  738. HELP                   Display On-line Help
  739. LABEL                  Draw a Label
  740. LEGEND                 Draw a Legend
  741. LINE                   Draw a Line (absolute)
  742. LINETO                 Draw a Line (relative)
  743. LOAD                   Specify an Input File
  744. LOCATION               Specify Type of x/y Position
  745. MAP                    Specify the Limits of an Axis
  746. MASK                   Mask a Rectangular Area
  747. MEMORY                 Give the Amount of Memory Left
  748. MOVETO                 Move to a Point
  749. NOBEEP                 Turn Beep Off
  750. NOBORDER               Do Not Draw the Paper Outline
  751. NOLABEL                Clear all Labels
  752. NOTITLE                Clear all Titles
  753. ORIGIN                 Specify Axis Origin
  754. OUTPUT                 Specify Output Terminal
  755. PAPER SIZE             Specify Paper Size
  756. PARAMETRIC PLOT        Plot a Parametric Curve
  757. PAUSE                  Pause and/or Wait for User Response
  758. PEN                    Specify a Pen Parameter
  759. PLOT                   Plot a Datafile, Curve or Function
  760. PLOTTING SEQUENCE      Select a Plotting Sequence
  761. POLYFIT                Generate a Polynomial by Least Squares
  762. PWD                    Print Current Working Directory
  763. QUIT                   Exit Graphica
  764. RECTANGLE              Draw a Rectangle
  765. SAMPLING               Specify Sampling Rate
  766. SHADE                  Shade a Specified Set of Data
  767. SHELL                  Spawn a DOS Shell
  768. SHOW                   Show the Current Screen
  769. SMOOTH                 Draw a Smooth Curve Through Data
  770. SPLINE                 Fit Data to a Spline
  771. SUBPLOT AREA           Specify Area Where Plot Will Go
  772. SUB/SUPERSCRIPT        Set the Sub/Superscript Size
  773. SYMBOL                 Select a Plotting Symbol
  774. TERMINAL               Specify Output Terminal Type
  775. TIC                    Specify Tic Mark Size and Direction
  776. TITLE                  Draw a Centered Axis Label
  777. TYPE                   Type a file
  778. UNIT                   Specify Drawing Units
  779. VIEW                   Move Paper to View Plotter Output
  780. WHAT                   Show *.plt Files in Current Directory
  781. WHO                    Show Variables
  782. X,Y,X2,Y2              Specify Axis Type
  783. X,Y,X2,Y2LABEL         Draw a Centered Axis Label
  784.  
  785.  
  786. The file 'graphica.fil' is used by the program to give you online
  787. help.  It is an ASCII file and may be printed.  It contains detailed
  788. information about each of the above commands, their features and how
  789. to use them.
  790.  
  791. The 'revisions' section (HELP REVISION) gives information on last
  792. minute command changes, additions and/or corrections.  The help
  793. file will always contain the latest information available about all
  794. commands in the version of GRAPHICA you now have.
  795.  
  796.  
  797. BUG REPORTING
  798. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  799.  
  800. Graphica is under constant revision, updating and being given
  801. expanded capabilities.  Prior to each release, I strive to
  802. verify new features and bug fixes through testing.  However, as
  803. inevitably happens with any software, some bugs do survive and
  804. show up in user runs.  Users can aid in the problem fixing
  805. process by following the guidelines below:
  806.  
  807. a) Report any unusual messages, computed results, format
  808.    overflows, etc. even though the program appears to have
  809.    terminated normally.
  810.  
  811. b) For any abnormal program termination, save the input file and
  812.    all output obtained by running the program.
  813.  
  814. Reported problems will be fixed as quickly as possible.  In most
  815. instances, alternate methods or techniques of plot formulation
  816. and input are available to permit graphing despite the bug.  All
  817. problems encountered with Graphica should be reported to the
  818. address below.
  819.