home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
educ
/
listplot.lzh
/
LISTPLOT
/
README
< prev
next >
Wrap
Text File
|
1991-08-15
|
8KB
|
212 lines
ABOUT LISTPLOT
ListPlot is a 2D plotting program built around the PLPLOT plotting library.
Although working directly with the PLPLOT library routines is more
flexible, ListPlot is quite powerful.
ListPlot was ported from a UNIX program written by myself and (mainly)
Rick Bartram. It reads from stdin and writes to stdout unless input
and/or output files are specified on the command line. (Reading from
stdin is of dubious value on the Amiga, since the standard shell does
not support pipes.) The program accepts a file of n-tuples. Each tuple
consists of space-separated numbers terminated with a newline. The
first element of each tuple is the independent variable. Each remaining
variable is plotted against the first to produce n-1 curves.
Linear-linear, linear-log, log-linear, log-log, and polar graphs are
supported.
ListPlot supports several output devices. By default the graph is drawn
in a window on the Amiga's screen. With command line options the graph
can be
1) sent to any preferences printer with graphics capability
2) stored as an IFF file
3) stored in HPGL format
4) stored in Aegis Draw format
5) stored as an Encapsulated Postscript File.
A variety of line styles and colors are available.
Overlining, underlining, subscripting, superscripting, and greek
characters can be used within labels.
INSTALLATION
Copy ListPlot to a directory in your path. The file plstnd.fnt
contains the fonts that ListPlot uses. It looks for this file in
plfonts:plstnd.fnt. So you need to store this file in a convenient
directory and make the appropriate assign.
Example:
makedir sys:plfonts
copy plstnd.fnt sys:plfonts
assign plfonts: sys:plfonts
You'll probably want to add the "assign" command to your startup sequence.
(plstnd.fnt is the same as that used in the most recent versions
(3.0 or higher) of PLPLOT)
ListPlot uses the FFP math libraries supplied by Commodore, so make
sure the mathtrans.library file is in your libs: directory.
The PLPLOT library uses the palette program that comes with the
WorkBench 1.3 enhancer package as a color requester. PLPLOT looks for
this program in tools: and, if it's not there, it looks in sys:tools.
You'll probably want to assign" tools: to the directory in which the
palette program resides. (At least until you get the colors set the
way you want them.)
TRYING OUT LISTPLOT
Because of the large number of command line options, it usually easiest
to create simple shell scripts to call ListPlot. Some example
scripts are provided in the examples directory. (These are standard
Amiga shell scripts). To test out ListPlot, try one or all of the
following
execute lineplot lineinput
execute logplot loginput
execute polarplot polarinput
THE DEVICE DRIVERS
The device drivers are those provided by PLPLOT. I've excerpted the
following descriptions from the PLPLOT distribution.
Amiga window
You can resize the window while the program is plotting in the
window (see the "Redraw Enabled" section below).
Use the close gadget to close the window and exit ListPlot.
"Plplot" menu selections:
"Save Configuration"
- Saves current window configuration (window size, screen type,
screen depth, colors, resolution, etc.). The configuration
is saved in s:Plplot.def (only 54 bytes).
"Reset"
- Resets the window to the configuration in s:Plplot.def
(or to a default config if this file doesn't exist).
"Maintain Plot Aspect"
- If this is checked the plot aspect ratio is maintained as the
window is resized (handy for polar plots, etc.). Default
is unchecked in which case x and y are stretched
independently to fit in the window.
"Redraw Enabled"
- If this is checked, then the graphics commands are buffered
in t:plplot.dat. This file is used to redraw the plot when
required. It's status is checked only when a new graph is
started. The buffer is also used to create the "Full Page"
prints under the "Print" selection.
"Select Screen Type"
- A submenu allows the user to select either "Workbench" or
"Custom".
"Print"
- There are three submenu options here. The "Bitmap Dump"
does just that (with full preferences support). The
output is pretty jagged, but you can play around with
the preferences stuff (scaling, smoothing, etc.) to
improve things. The other two submenus are
"Full Page (Landscape)" and "Full Page (Portrait)". This
uses the graphics buffer file (see "Redraw Enabled" above)
to create graphics output similar to the preferences
driver. However the aspect ratio can not be maintained.
Same preferences options are used as in preferences driver.
"Save Bitmap as IFF File"
- Self explanatory. You can use this to save your images and
then touch them up (do area fills, etc.) with your favorite
paint program.
"Screen Format" selections: (This menu only appears on the custom screen)
"Interlaced"
"High Resolution"
"Number of Colors"
"Set Color Palette"
- I think these are all self-explanatory. You can select either
2, 4, 8, or 16 colors.
Preferences
The preferences driver creates a black and white graph on your
preferences supported printer. It uses the preferences selected
density and page size limits and ignores most of the other stuff.
If you have selected "ignore" in the page size limit options
(see the 1.3 Enhancer manual) then a full page graph is produced.
The other options operate as described in the Enhancer manual.
Only "ignore" and "bounded" produce aspect ratio correct plots
(usually unimportant unless x and y must have the same scaling
like for pie charts or polar plots). You can get very high quality
plots with this driver. A full page, high resolution plot
requires a lot of memory though (An 8"x10" 300 dpi plot requires
(8*300)*(10*300)/8 = 900000 bytes). You can use the page limits
to reduce the memory requirements and still get high quality
output.
iff
The IFF driver will prompt for resolution and page size.
hp
The plt: device is an HP plotter compatible device handler written by
Jim Miller and Rich Champeaux. It is freely redistributable, but
it is not included with this package (it's big enough already!).
It gives high quality output like the preferences driver but with
full preferences support. Usually requires less memory (for full
page plots) than the preferences driver, but is slower. Highly
recommended if you have a color printer or are memory strapped.
I don't know exactly which model HP plotter this is compatible
with (the HP7470 I think).
aegis
I created this one because I have Draw2000 and it was easy to do.
This provides a very convenient method for touching up simple
graphs with paint-like tools.
postscript
Encapsulated PostScript File.
THINGS YET TO BE DONE
There may be a 3D/contour version of ListPlot if there is enough interest.
(PLPLOT does 3D and contour plotting and so the extension to ListPlot should
be fairly simple.)
REPORT BUGS TO
Tony Richardson
EMAIL amr@dukee.egr.duke.edu (Internet address)
USMAIL Tony Richardson Tony Richardson
Dept of Elect Eng 311 S. LaSalle St. #41B
Duke University Durham, NC 27705
Durham, NC 27706
ph 919-660-5262 ph 919-286-7101