PSGRAPH V 1.0 By Rick Golembiewski Wed Jun 12 1991. PSGraph is a program that I wrote because I didn't have any descent graphing programs for my amiga. Note that this is the first release of the software, but it is fairly stable, I've been using it for about a year now. It works under 1.3 or 2.0 (tested on a A1000 (2.5MB) and an A3000 (6MB) ). These docs are a bit skimpy, but they will give you enough info to make plots. Note that I designed the program around curses so that I could run it on UNIX machines, thus it lacks some of the neat amiga specific interface but it is very usable after a bit of practice. Thanks to Simon John Raybould for providing the amiga with a very solid curses library, that has made development of this program for the amiga much easier. I'm releasing this program as shareware, if you find it useful then send any donations, also if you have any bug reports or suggestions for improvement you can send them to: Rick Golembiewski 1825 Taper Dr. Pittsburgh PA 15241. EMail: rg20@andrew.cmu.edu Note that receiving donations will motivate me to put more features and/or fix any bugs. Additionally if you donate $15 or more more I will keep you name and address and send you a copy of any new revisions. There are two main sections of the program, the first is the data section, which shows a number of columns into which you can input data, do calculations, etc. The second section is the plotting section, where you define what you want a graph to look like and then you can either get a graphic preview or do a postscript plot. Installation The program can be run from the CLI by typing 6.psgraph:> run psg Note that it will look in the default directory for the file called psg.keys This file contains the key bindings, if no file is present the default key bindings are used. In order to create postscript output, the program needs to be able to find the file containing the postscript functions fun.ps. This file should be in a directory grf: ie assign grf: df0:psgraph Data Section When in the data section typing a number and then will enter the number into the bracketed cell ie < >, pressing instead of aborts the change. Note that psg.keys is a file that allows rebinding the commands, the default bindings are listed here: 'C' linear least squares curve fitting 'D' Delete data (bank a single cell, delete cell, or entire column) To move the marked cell: 'I' Up left 'J' 'K' right 'M' Down 'E' insert rows or cols 'F' Single place functions (ie Sin Cos Tan Log ln exp ...) This also includes a few odd functions like Weighted Mean (calculates the mean favoring the values with the smallest errors), and difference (takes a column and subtracts the value 0 from value 1 etc.) 'L' Label a column of data 'N' Invert a column of data 'O' re Order columns, exchanges two column positions 'P' Plot -> select data then go to plotting section. 'Q' Quit 'R' Read file 'S' Statistics (mean,summation Standard Dev (n & n-1),range 95% confidence) 'T' Two place functions (ie + - * / power ) 'V' fill a col with a constant number (useful for filling in a common error) 'W' Write file 'Z' resize columns (default size is 16 chars wide) Plotting Section The '>' marks the data slot, pressing 'E' will edit the data ( instead of aborts changes) Title : Title of graph XLabel : X Axis label of graph YLabel : Y Axis label of graph XMin : Minimum X value (graph coordinates) XMax : Maximum X value (graph coordinates) YMin : Minimum Y value (graph coordinates) YMax : Maximum Y value (graph coordinates) Marking : integer 1-7 indicating symbol to mark data with: 1 = square 2 = circle 3 = up pointing triangle 4 = 'X' 5 = diamond 6 = down pointing triangle 7 = star X Grids : # of grid lines on X axis Y Grids : # of grid lines on Y axis X Labels : # of labels on X axis Y Labels : # of labels on Y axis SXMin :Min X screen coordinates in inches SXMax :Max X screen coordinates in inches SYMin :Min Y screen coordinates in inches SYMax :Max Y screen coordinates in inches 'F' to select a column of polynomial coefficients to add to plot (ie generated by the least squares fit). 'P' plot the data to a file (currently postscript is the only supported output) 'G' Graphic preview (amiga hi-res screen), This function generates a graphic view of the plot, there are some small differences between this output and the postscript output, mainly the Y axis label and numbering is written vertically in postscript, however since rotating text is not trivial and the font sizes on the amiga are a bit too large the preview has all text horizontal. 'Q' or returns to the data section.