From: Alan W. I. <ai...@us...> - 2004-01-02 21:42:06
|
Update of /cvsroot/plplot/plplot/examples/f77 In directory sc8-pr-cvs1:/tmp/cvs-serv26045 Modified Files: x17f.fm4 Log Message: * Style changes (comments, indentation, do loops). * Make this fortran "chart recorder example" work for first time. There are some inevitable differences relative to the C version. . Used g77 (and solaris fortran and ?) library rand function to generated random numbers. Users will probably have to substitute some other library call for random numbers for other compilers. Note the numbers returned by rand are different from those of the C Library routine drand48 so the interactive results look different (but still it looks like a chart recorder which is cool.) . plsError not part of the PLplot common API so bypassed it and let PLplot do its own error handling. . Dropped sleep interval from loop. 10 ms is about right, but the g77 sleep routine only has a resolution of 1 second (which is like watching paint dry). Actually eliminating the loop delay altogether still makes a good-looking "chart-recorder" example (at least on my 600MHz machine). |