> I am looking to add a graphical output sub-routine on the end of an
> F90 programme which I have recently written, however, having never
> investigated the graphical capabilities of F90 I am looking for any
> help / advice anyone has. ( Are there any good reference books or Web
> Sites ? )
Fortran has no `graphics primitives' as such. That really goes
beyond the scope of what the language is supposed to define. You can
either call some external library, of which many are available, or `roll
your own' with commands like
WRITE (UNIT=OUT_NUM, FMT=*, IOSTAT=FILE_RESULT) X, Y, 'translate'
I actually have a program of this type, which produces very good
PostScript code (as in the above example) and supports several other
output devices as well. However, you have to know what to WRITE, like
VTxxx escape sequences.
Some things I've heard of but never used myself:
PGPLOT: http://astro.caltech.edu/~tjp/pgplot/
OpenGL: http://math.nist.gov/f90gl/
GKS
Alternatively, you can write your data to a file and plot it with some
other program, either self-written or something from somewhere else.
--
Phillip Helbig Email ......... [log in to unmask]
Nuffield Radio Astronomy Laboratories Tel. .... +44 1477 571 321 (ext. 297)
Jodrell Bank Fax ................ +44 1477 571 618
Macclesfield Telex ................ 36149 JODREL G
UK-Cheshire SK11 9DL Web ... http://www.jb.man.ac.uk/~pjh/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|