home *** CD-ROM | disk | FTP | other *** search
- PGPLOT on an Acorn Archimedes using Fortran release 2.
-
- D.J. & K.M. Crennell ('Fortran Friends') February 1994
- P.O. Box 64, Didcot, Oxon OX11 0TH, UK.
-
- --------------------------------------------------------------------------
- OBTAINING THE SOURCE
-
- If you already have the source code of PGPLOT, skip this section which
- explains how to obtain it using anonymous ftp. If you do not have access to
- a relevant network, the !Squashed source of version 4.9H, the TeX of the
- manual from 1989, and the distributed applications, may be obtained by
- sending £2.00 to cover costs (£3.00 from outside the UK) to K.M. Crennell at
- the above address.
-
- PGPLOT is available by anonymous ftp as either a compressed tar file (for
- UNIX systems) or a compressed backup save-set (for VMS systems). Both
- versions contain the same code, which must be compiled for your target
- machine.
-
- 1. UNIX (tar)
-
- Use anonymous ftp (user: anonymous, password: your id [username@machine]) to
- node deimos.caltech.edu (131.215.139.14).
-
- Issue the following ftp commands to retrieve the compressed PGPLOT tar
- file:
-
- cd pgplot
- binary
- get pgplot49h.tarz pgplot49h.tar.Z
-
- Decompress the file to produce file pgplot49h.tar:
-
- uncompress pgplot49h.tar.Z
-
- Extract the source code from the tar file
-
- tar xvf pgplot49h.tar
-
- This will create directory pgplot (and subdirectories) in the current
- directory.
-
-
- 2. VMS (backup)
-
- Use anonymous ftp (user: anonymous, password: your id [username@machine]) to
- node deimos.caltech.edu (131.215.139.14).
-
- Issue the following ftp commands to retrieve the compressed PGPLOT backup
- saveset and the decompression program (VMS):
-
- cd pgplot
- binary
- get pgplot49h.backup_cmp
- get lzdcm.exe
-
- Define a "foreign command" to run the LZDCM program, and then run it
- [NB: you cannot use a RUN command]:
-
- $ dcm == "$disk:[dir]LZDCM"
- $ dcm pgplot49h.backup_cmp pgplot49h.backup
-
- The programs LZDCM.EXE and LZCMP.EXE are OpenVMS-VAX implementations of the
- UNIX compress algorithm. The source code is in directory [.pgplot.lz]. You
- may need to recompile LZDCM for OpenVMS-AXP.
-
- Extract the source code from from the backup saveset:
-
- $ BACKUP/LOG/VER PGPLOT49H.BACKUP/SAVE/SELECT=[PGPLOT...] -
- disk:[dir.PGPLOT...]
-
- This will create directory PGPLOT and subdirectories.
-
- It is also possible to copy the source code from a Unix machine; e.g., if
- you have Multinet rcp on the VMS machine, use a command like the following
- to copy the entire PGPLOT directory tree ("phobos" is the name of the Unix
- machine):
-
- $ RCP/LOG/RECURS "phobos::/usr/local/pgplot" [...]
-
- --------------------------------------------------------------------------
- TESTED DRIVERS
-
- Currently only the following drivers have been tested under RISC-OS3:
-
- /NULL to plot onto the null device.
-
- /ARC to use the Fortran Friends graphics library routines to plot to the
- screen. The driver uses the screen mode in use at the time the program
- is invoked; this must be either a 16 or a 256 colour mode.
- The first 16 colours are set to the defaults described in the PGPlot
- manual, the rest are pre-set to black.
-
- /PS to produce a file that can be printed on a Postscript printer.
-
- /VPS to produce a 'vertical' or portrait mode Postscript file.
-
- /CPS to produce a colour Postscript file.
-
- /VCPS to produce a 'vertical' or portrait mode colour Postscript file.
-
- Please feel free to adapt drivers for other plotting devices and make them
- available to other users. A desktop compliant driver would be very welcome.
-
- --------------------------------------------------------------------------
- INSTALLING PGPLOT
-
- It is assumed that you have transferred the following directories from
- California:
-
- 0) PGPLOT with text files AAAREADME, COPYRIGHT and PGPLOT/HLP and the
- associated subdirectories:
-
- 1) SRC with the portable PGPlot source. This directory contains ~200 files,
- so concatenate the Fortran into 1 file, keeping the two include files
- separate.
-
- 2) SYS_ARC which contains all the Archimedes specific code, HicBoot and
- HicRun and the source of the device drivers
-
- 3) FONTS
-
- 4) EXAMPLES
-
- It is also assumed that you have the PD Fortran libraries 'Graphics' and
- 'Utils' which are obtainable on the Shareware 44 Disk for £2 from:
- Norwich Computer Services, 96a Vauxhall Street, Norwich NR2 2SD, UK.
-
- These libraries are also supplied with the !Fortran77 utility at £25 from
- Intelligent Interfaces Ltd, P.O.Box 80, Eastleigh, Hants SO5 5YX, UK.
-
- Installation procedure
-
- Set up this directory structure on the Archimedes:
-
- !PGPlot -
- Examples -
- f77 (for the demo source code)
- f77 (for the PGPlot system code)
- SYS_ARC -
- f77 (for the Archimedes specific code)
-
- Copy:
- 1) the Examples ReadMe and Fortran source into the Examples and Examples.f77
- directories.
- 2) the portable source file (call it PGPlot) and 2 include files (PGPLOT/IN
- and GRPCKG1/IN) from SRC into the f77 directory.
- 3) the contents of the SYS_ARC with its Fortran files into SYS_ARC
- and SYS_ARC.f77
- 4) the files GRFONT/TXT, RGB/TXT and PGPLOT/HLP into !PGPlot
- rename the file RGB/TXT as RGBTxt.
-
- Then:
- 1) Edit the Fortran file in the !PGPlot.f77:
- a) change the all instances of the INCLUDE file names 'pgplot.inc' to
- 'f77.PGPLOT/IN' and 'grpckg1.inc' to 'f77.GRPCKG1/IN'
- b) Find the subroutine GRSYXD in the Fortran source, it has an INTEGER*2
- declaration which is not supported by Archimedes Fortran. There is a
- non-standard version in your SYS_ARC.f77 which simulates the INTEGER*2
- code. It was derived from the standard version dated:
- "15-Dec-1988 - standardize". Provided this is the version you have
- just imported then it is OK to remove it from the big source, part c)
- below will insert the new code. Otherwise you will have to improvise
- changes to the GRSYXD in SYS_ARC.f77 to reflect those in the newer
- version.
- c) add a card:
- INCLUDE 'SYS_ARC.f77.ArcInclude'
- at the end to include the Archimedes specific code.
- 2) Ensure that the two 'include' files are called PGPLOT/IN and GRPCKG1/IN.
- 3) make the Current Selected Directory your !PGPlot (*DIR ...!PGPlot). This
- is not necessary if you are using the !Fortran77 front-end from
- Intelligent Interfaces, or the one from Shareware 44 because they do this
- for you.
- 4) compile the code, creating the object file which can then be used as the
- PGPlot library. For convenience, move it into your Fortran libraries
- directory.
-
- Now make !PGPlot into an application:
-
- 1) copy to it the HicBoot as !Boot and HicRun as !Run from SYS_ARC and
- delete the originals.
- 2) make them into 'Obey' files (e.g. *SETTYPE !Boot FEB)
- 3) you will also need a !Sprites, so copy one from another application and
- correct it using the !Paint utility. The sprites should be renamed
- '!pgplot' and 'sm!pgplot' so that they will be displayed correctly in the
- filer window.
- 4) look at the !Run. It contains several statements setting up the PGPLOT_
- variables required by PGPlot. You may want to alter these or set up some
- of your own.
-
- Click on the !PGPlot icon to initialise the global variables and sprites.
-
- --------------------------------------------------------------------------
- SET UP THE FONTS
-
- 1) Compile, link and run the program SYS_ARC.f77.PGPack; this will create an
- UNFORMATTED file 'GRFont' in your !PGPlot application.
- 2) You may now delete the GRFONT/TXT.
-
- --------------------------------------------------------------------------
- TRY THE EXAMPLES
-
- Look into !PGPlot.Examples.f77 and edit the source of PGDemo1 and PGDemo3.
- These both have statements at the beginning like:
- PI = ACOS(-1.)
- This hits one of the few known bugs in the compiler (it actually gives you
- ACOS(+1.) which is not useful!), so change these to:
- PI = 3.1415927
- or maybe better:
- PARAMETER(PI = 3.1415927)
-
- Now compile a demo, and link it with a command like:
-
- *Link -o demo1 aof.PGDemo1 lib.PGPlot lib.Utils lib.Graphics lib.f77
-
- then:
-
- *Run demo1
-
- This will first ask you for the device and should say that the default is
- /ARC. Just press return to see the demo on the screen.
-
- --------------------------------------------------------------------------
- SETTING UP THE HELP FILE
-
- 1) Compile, link (including the Utils library) and run the file:
- SYS_ARC.f77.ConvertHlp
- This will translate the PGPLOT/HLP to a new file HelpPGPlot within your
- !PGPlot application.
-
- 2) If you have !SrcEdit and want to use the on-line help,
- append the lines:
-
- PGplot
- none
- <PGPLOT_DIR>.HelpPGPlot
-
- to the file 'choices.languages' within the !SrcEdit application.
-
- 3) if you have !DeskEdit you will have to replace one of the 3 help files in
- !DeskEdit.data (say Help_T) with the HelpPGPlot file you have just made.
-
- 4) Delete the PGPLOT/HLP file.
-
- --------------------------------------------------------------------------
- OTHER USEFUL PGPLOT ROUTINES
-
- Other directories you may find useful on the distribution from California
- are the APPLICATIONS, which contains some auxiliary programs but not all in
- portable code, and DRIVERS which has all the known device drivers. These are
- not usually portable, but you may find some of them a good start if you
- want to write a new driver of your own.
-
- We welcome any generally useful new utilities and device drivers for PGPlot.
- Please send them to 'Fortran Friends' at the above address so that we may
- include them in future issues.
-
-