home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 100-199 / ff104.lzh / AnalytiCalc / CF02.CMD < prev    next >
OS/2 REXX Batch file  |  1987-10-15  |  3KB  |  85 lines

  1. /#
  2. //
  3. VM
  4. * (above command turns off screen display update. We may want to
  5. * turn off recalculate too via RM, but let user decide.)
  6. * COMMAND FILE TO GRAPH ONE OR TWO SECTIONS OF A
  7. * SPREADSHEET.
  8. * INVOKE WITH THE COMMAND @GRF.CMD" AT COMMAND LEVEL (OR
  9. * BIND IT TO A KEY).
  10. *  IGNORE EXTRA PROMPTS AT THE COMMAND LINE.
  11. *  THIS FILE WILL RUN FASTER IF YOU REMOVE ALL THESE COMMENT LINES
  12. *  (I.E. ALL LINES THAT START WITH * CHARACTER)
  13. *
  14. * FIRST SAVE THE SHEET (NUMERICALLY ONLY FOR SPACE & SPEED)
  15. * DON'T BOTHER SAVING WHERE WE ARE JUST HERE...
  16. %IGNORE prompts here... saving data for graphics...%*%%
  17. *
  18. * Notice we can use techniques similar to this to get graphs
  19. * from either of the two BASIC graphics programs, though they
  20. * need to be modified to read their inputs off files we can
  21. * create. This set of commands uses ACGRAF to produce histograms
  22. * or scatterplots. If one spreadsheet range is given, it will be
  23. * output as a histogram. If two are given (separated by space),
  24. * they will be scatter plotted, the first range against the
  25. * second. Ranges may be a row or a column (or part thereof).
  26. *  These comments should be left in, as they give a short delay for
  27. * reading a message.
  28. *  Invoke this procedure with @GRF.CMD from AnalytiCalc. Or bind
  29. * a function key to mean @GRF.CMD by editing AUXKPD.TXT.
  30. *  Here we actually save the sheet. Note if we did a PDN it'd
  31. * save the sheet according to the display mapping so we could
  32. * do our plots of what's displayed in the order displayed, rather
  33. * than physical order. Edit these procedures to suit yourself.
  34. *
  35. L A1
  36. PPN
  37. TMP.PCC
  38. 0
  39. 0
  40. * null command to clear command line
  41. % %%%
  42. %NOW give region names separated by space if two rather than one.%*%%
  43. *
  44. *
  45. *
  46. *
  47. * DELAY SPACERS SO THIS FLASHED MESSAGE CAN BE NOTICED
  48. *
  49. *
  50. *
  51. *
  52. *
  53. *
  54. *
  55. *
  56. * erase flashed message by couple of commands.
  57. % %%%
  58. %                                                                %*%%
  59. % %%%
  60. * NOW TMP.PCC HAS THE SAVED INFO, SO NOW FIND OUT WHERE THE
  61. * USER WANTS GRAPHED. Then fire up GRF.BAT to run ACGRAF to
  62. * actually generate the plot. Then we'll clean up.
  63. * NOTE: GRF.BAT GENERATES LINEAR-LINEAR PLOTS WITH ORIGIN
  64. * INCLUDED. MODIFY THE "PP" TO "NN", "LL", "NL" OR SOME
  65. * SUCH TO EITHER NOT INCLUDE THE ORIGIN OR CHANGE TO A
  66. * LOG OR SEMILOG PLOT.
  67. *  Also note that you can put output to a printer by replacing
  68. * CON: in GRF.BAT by PRN: instead.
  69. * Here ask user for what region(s) he wants to plot.
  70. *
  71. %Enter region name(s) to graph:%}grf %\%
  72. *Now we've got control back, so erase tmp.pcc so the disk
  73. * stays cleaned up.
  74. * Comment this out if you want to leave the savefile around for
  75. * multiple graphs.
  76. $DEL TMP.PCC
  77. * If we had used RM in the start to turn off recalculation,
  78. * we'd want to use R here to turn it back on, but omit here.
  79. *
  80. * Turn on screen redraw.
  81. V
  82. * THAT'S IT.
  83. /#
  84.  
  85.