home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / discs / shareware / share_39 / graph_draw / !GraphDraw / !help < prev    next >
Text File  |  1994-01-20  |  16KB  |  466 lines

  1. !GraphDraw, ⌐ Chris Johnson, 1990-1994
  2.  
  3. These user notes refer to version 2 (October 1993)
  4.  
  5. THIS VERSION SHOULD BE USED ONLY WITH RISC OS 3.1 OR
  6. LATER.
  7.  
  8.  
  9. *********************************************************
  10.  
  11. ACKNOWLEDGEMENT
  12.  
  13. THIS PROGRAM WAS COMPILED USING THE DABS PRESS ARCHIMEDES
  14. BASIC COMPILER (ABC)
  15.  
  16. THE FONT MENU MODULE IS BY JORIS ROLING
  17.  
  18. *********************************************************
  19.  
  20.  
  21. What this software does
  22. =======================
  23.  
  24. It allows the entry of the x and y values for a number of
  25. data, and the data may then be fit to
  26.  
  27. a. best straight line
  28. b. best parabola
  29. c. a cubic spline curve
  30. d. a polynomial of order up to 6
  31.  
  32. A number of options for obtaining various forms of hard
  33. copy exist (saving as a !Draw file, or printing via any
  34. standard RISC-OS printer driver).
  35.  
  36. Use of !GraphDraw
  37. =================
  38.  
  39. Running the application
  40. -----------------------
  41.  
  42. This software is fully RISC-OS compatible, and is
  43. multi-tasking. It can be run from the desktop in all the
  44. standard ways.
  45.  
  46. Double clicking on the !GraphDraw icon in a directory
  47. viewer will install its icon on the icon bar. Clicking
  48. 'menu' on this icon will lead to a menu providing 
  49.  
  50. Info
  51. ----
  52.  
  53. a standard information window with version number
  54.  
  55. Help
  56. ----
  57. Opens a window displaying appropriate help. Such help
  58. is available from other menus as well
  59.  
  60. Choices
  61. -------
  62.  
  63. Selecting this brings up a dialogue box that 
  64. allows a range of options to be changed, and 
  65. these changes may be made permanent so 
  66. that they become the new defaults when the 
  67. application is subsequently started.
  68.  
  69. The choices should be self explanatory. The 
  70. font names and sizes can be changed. To  change the
  71. font, simply click on the name field, when a menu will
  72. open with all the installed fonts shown, from which a
  73. choice can be made. A range of other options
  74. governing the way graphs are displayed are also
  75. offered. The changes will not come into  operation
  76. until the OK button is pressed. If the  cancel button
  77. (or the window close icon) is  pressed, the dialogue
  78. box is removed from the  screen, and the original
  79. defaults remain in  effect. The selection can be made
  80. the new  default by clicking on the save icon. Note
  81. that the default  file is saved within the !GraphDraw
  82. application, therefore, if the application is being run
  83. from a  floppy disc, the filer may request the disc 
  84. containing the !GraphDraw application to be  inserted
  85. in the disc drive.
  86.  
  87. File format
  88. -----------
  89.  
  90. Graphdraw by default assumes that data files to be
  91. loaded are essentially in CSV format. It is
  92. possible to change the data field separator that
  93. graphdraw looks for in input files to TAB, space
  94. or any other ASCII character. When graphdraw saves
  95. a data file it always uses the COMMA as a
  96. separator.
  97.  
  98. Quit
  99. ----
  100.  
  101. the opportunity to quit the application.
  102.  
  103.  
  104. Clicking SELECT on the iconbar icon will open an
  105. empty edit window, into which the pairs of x,y
  106. data may be entered. This version allows a maximum
  107. of 200 data point pairs. Full scrolling and
  108. editing facilities are available during data
  109. entry, by means of the arrow keys, either alone or
  110. in conjunction with SHIFT or CTRL. Page up/down
  111. are the same as SHIFT+arrow. One useful key
  112. combination is CTRL+SHIFT+COPY, which will delete the
  113. data point at the cursor and close up the rest of the
  114. data. The function key f3 will bring up the standard
  115. save as dialogue box (as provided also as a menu
  116. choice). 
  117.  
  118. The application can also be started by double clicking on a
  119. data file of the correct format. In this case, besides the
  120. icon appearing on the icon bar, the edit window will be
  121. opened with the contents of the data file displayed, for
  122. further editing if necessary. A data file may also be
  123. dragged, either into the edit window, or to the iconbar
  124. icon. The data will be loaded, overwriting any data that had
  125. previously been entered.
  126.  
  127. Data can also be passed in either direction between the
  128. GraphDraw edit window and a !edit window. Thus editing can
  129. be carried out using the !edit application if preferred.
  130. Data can be entered 'from scratch' using !edit, and then
  131. transferred to the !GraphDraw application (by dragging a
  132. save icon to its edit window or its iconbar icon), as long
  133. as the !GraphDraw application can recognise a valid data
  134. file. As the graphdraw application will deal with files
  135. of comma separated ASCII data it is possible to set up
  136. other applications to produce data files of the correct
  137. form.
  138.  
  139.  
  140. The !GraphDraw edit window menu
  141. ===============================
  142.  
  143. All of the data processing and data display facilities are
  144. accessed from the edit window menu.
  145.  
  146. Clicking the 'menu' button in the edit window brings up the
  147. following choices.
  148.  
  149. Info
  150. ----
  151. Help
  152. ----
  153.  
  154. Clear data
  155. ----------
  156. This will irretrievably clear the current data prior to the
  157. entry of new data.
  158.  
  159. Save file
  160. ---------
  161. Data files may be saved by dragging the save icon to a
  162. directory viewer. If the full path name is set up, then you
  163. can also click on the OK icon to save the data.
  164.  
  165. The function key F3 can be used as a short cut for this
  166. option (unless the graph window is open, when F3 will
  167. bring up the "save drawfile" dialogue box).
  168.  
  169. It is also possible to drag the save icon to a !Edit window,
  170. or to the !Edit icon on the iconbar. The data is then
  171. transferred into !Edit.
  172.  
  173. Plot points
  174. -----------
  175. This will simply plot a scaled graph of the data.
  176. Additional sub-menu choices allow you to plot the data
  177. as is, as semi-log x, semi-log y or as a log-log plot.
  178.  
  179. Join points
  180. -----------
  181. This plots the points and joins each point to the next
  182. with a straight line. The log plotting options are
  183. available as above.
  184.  
  185. Best line
  186. ---------
  187. This will carry out a standard linear regression by the
  188. least squares method to calculate the best fit straight line
  189. through the data. A window will open displaying the slope,
  190. intercept on y axis, correlation coefficient and the
  191. standard errors of the slope and intercept. Clicking 'menu'
  192. in this window allows the following choices.
  193.  
  194.    Graph
  195.    -----
  196.    This will display a graph of the data points with the
  197.    calculated best line superimposed. Clicking 'menu' in the
  198.    graph window leads to a further set of options (see below
  199.    under cubic spline).
  200.  
  201.    Print data
  202.    ----------
  203.    This will send the results of the calculation to any
  204.    printer connected to the computer. The individual errors
  205.    calculated for each data point are also printed.
  206.  
  207. Parabola
  208. --------
  209. This will carry out a least squares fit of the data to the
  210. equation of a parabola
  211.  
  212.       y = u + vX + wX^2.
  213.  
  214. This is a useful technique for fitting data to a simple
  215. curve. A window will open showing the calculated values of
  216. the coefficients u, v and w. Clicking 'menu' in this window
  217. will bring up the same two options as described above, i.e.
  218. graph and Print data.
  219.  
  220. Polynomial
  221. ----------
  222. This will carry out a standard polynomial fit for orders 3
  223. to 6. Some of the higher order options may be greyed out if
  224. there are not enough data points. Selecting a particular
  225. order will force the program to calculate that specific
  226. order polynomial, whereas if 'All' is selected, the program
  227. will try all possible orders (3 to 6) and report the one
  228. which gives the smallest deviation. A window will open
  229. showing the results of the calculation, and clicking 'menu'
  230. on this window leads to the same options as above.
  231.  
  232. Cubic spline
  233. ------------
  234.  
  235. This option leads to a small dialogue box, which
  236. at present simply requests the 'fit factor' to be
  237. specified. This value must lie BETWEEN 0 and 1. In
  238. theory, a value of 0 will plot a straight line
  239. through the points, while a value of 1 will force
  240. the curve through every point. In practice these
  241. values cannot be used, since a divide by zero
  242. error is generated during certain matrix inversion
  243. operations. Little is lost since a value of 0.9999
  244. or 0.0001 will give essentially the same result as 1
  245. or 0. Curve fitting is always very subjective, and
  246. it is up to the user to decide what degree of
  247. smoothing is acceptable for any particular set of
  248. data. A value of 0.5 is an obvious starting point
  249. for any data known to have scatter or experimental
  250. error.
  251.  
  252. Once <return> is pressed, the spline plot will be
  253. displayed. For this plot, it requires all the data
  254. to be sorted in order. The program automatically
  255. sorts the data in ascending order of x values
  256. before carrying out the spline routine. Note
  257. that this sorting occurs whenever any of the plotting
  258. routines are used.
  259.  
  260. Transform X
  261. -----------
  262.  
  263. Allows the x data to be transformed in a number of
  264. standard ways, e.g. LOG, reciprocal. These operations
  265. are cumulative, but it is up to the user to remember the
  266. sequence of transformations.
  267.  
  268. Transform Y
  269. -----------
  270.  
  271. As for transform X but on the y data.
  272.  
  273. Swap X and Y
  274. ------------
  275.  
  276. Simply interchanges the x and y data pairs.
  277.  
  278.  
  279. Graph window menus
  280. ==================
  281.  
  282. Whenever a graph is being displayed, clicking 'menu' will
  283. lead to a further range of options. Some of these are common
  284. to all the graph types, others are specific to cubic spline.
  285. Rather than repeat the same thing several times over, all
  286. the common options are dealt with here.
  287.  
  288. The common options
  289. ------------------
  290.  
  291. Legend
  292. ------
  293.  This opens a window which allows you to
  294. enter text to label the graph axes, and a title string
  295. for the graph. Clicking on display will place the
  296. labels on the graph, while delete will remove labels
  297. from the graph (the text remains in memory and can be
  298. reinstated by reselecting label and clicking on
  299. display). Simply closing the menu will leave the state
  300. of the labels as they were. This facility now supports
  301. up to four font styles and super and subscripts.
  302.  
  303. The labels are dragable icons and can thus be dragged to
  304. anywhere on the graph if you dont like the default
  305. positions. The same labels will appear on any graph, with
  306. the previous position being remembered. The y-axis label
  307. may be plotted either horizontally or vertically, with
  308. rotated text.
  309.  
  310. If data is saved after legends have been entered, then the
  311. text is also saved, and is reloaded when the data is
  312. reloaded.
  313.  
  314. Layout
  315. ------
  316. This leads to a dialogue window in which various aspects
  317. of the way the graph is laid out may be changed, e.g.
  318. whether the axis pips are inside, outside or straddle
  319. the axis lines, the size of the pips, whether the graph
  320. is boxed in, and the type of symbol used for the data
  321. points. It is now possible to over-ride certain of the
  322. automatic plotting features (e.g. the axis range). These
  323. aspects are under continuous development, and will be
  324. enhanced in future releases.
  325.  
  326. Make Drawfile
  327. -------------
  328. A standard 'save as' dialogue box will be opened. The file
  329. icon may be dragged to a directory viewer, or if the full
  330. filename path is set up it is possible to click on OK. The
  331. file saved is a Drawfile of the graph being displayed. This
  332. file can then be loaded into !Draw for further enhancement.
  333. It is also permissible to drag the file icon into a !draw
  334. window to add the graph to an existing draw document, or
  335. drag the icon to the !draw icon on the iconbar, when a new
  336. draw window will be opened. The production of !Draw
  337. format files means that the graphs can be loaded into
  338. !Draw for enhancement, and can also be loaded into the
  339. various DTP packages now available.
  340.  
  341. When it is first loaded into !draw, the whole graph appears
  342. as one object, and may be scaled, moved, etc. as a whole.
  343. The line thickness may be changed, etc. The objects
  344. making up the graph may be ungrouped in the normal way.
  345. This allows adjustment of individual parts of the graph,
  346. or annotation. It needs care when dealing with the
  347. individual parts of the graph, otherwise you may
  348. inadvertantly move parts of the axis for example, or
  349. even the graph itself, and have great trouble getting it
  350. back to the correct place.
  351.  
  352. If you are familiar with using !draw, then it should be easy
  353. to play around with the draw files output by !graphdraw.
  354.  
  355. If the graphdraw edit window has input focus, then the
  356. function key F3 may be used as a short cut for this
  357. option.
  358.  
  359. Make plotfile
  360. -------------
  361. This will output a data file of the points AND the
  362. current fitted line in a form suitable for loading into
  363. the MultiPlot application. (If only the points have been
  364. plotted, then only the points will appear in the
  365. multiplot file). This has the same look and feel of
  366. graphdraw, but allows the combining of up to 6 sets of
  367. line and point data onto the set of axes. Multiplot
  368. deals only with the graphical display, it has no data
  369. entry or processing facilities. It will accept plotfiles
  370. from a number of applications besides graphdraw. Contact
  371. the author for information.
  372.  
  373. Print Graph
  374. -----------
  375. Choosing this option gives a printout of the complete graph
  376. via whichever printer driver application is installed. A
  377. printer driver must be installed, otherwise !Graphdraw will
  378. complain. This allows high quality hard copy to be
  379. obtained, up to the best available resolution of the
  380. printer used. The "Print" key may be used as a short
  381. cut if the edit window has input focus.
  382.  
  383. Cubic Spline option only
  384. ------------------------
  385.  
  386. Interpolate
  387. -----------
  388. This option is available ONLY from the cubic spline graph,
  389. and allows the interpolation of single values, or the
  390. dumping of a range of values to the printer. Note that it is
  391. not possible to extrapolate the spline curve beyond either
  392. of the end points.
  393.  
  394. *************************************************************
  395.  
  396. The software referred to in these notes is NOT placed
  397. into the  public domain, but remains the copyright of
  398. the author, Chris Johnson. It is released for
  399. distribution by Norwich Computer Services under their
  400. Shareware/Careware scheme, and should not be posted on
  401. bulletin boards or circulated on any public domain
  402. software discs, except by prior and express agreement
  403. with the author.
  404.  
  405. Anyone obtaining this software by any means other than by
  406. direct purchase from Norwich Computer Services, or from the
  407. author, and making use of the software other than for trial
  408. purposes, is requested to register with the author by
  409. sending ú3. All users registering directly with the
  410. author will be informed from time to time of any
  411. significant improvements or 'bug' fixes and will be
  412. entitled to upgraded versions of the software free of
  413. charge at any time by sending a blank disc.
  414.  
  415. The software is supplied as is, and no warranty, either
  416. express or implied, is given as to the suitability of the
  417. software for any purpose.
  418.  
  419. Notwithstanding the above, the author would, of course, be
  420. interested in hearing of any 'bugs' or any  other unexpected
  421. features, and will endeavour to correct any such 'bugs' so
  422. reported in any future issues of this software. Suggestions
  423. for improved features are also most welcome. Implementation
  424. of suggestions depends of course on practicability and more
  425. importantly, the authors spare time (I do have a full time
  426. job!).
  427.  
  428. If you have any comments on this program, or would like to
  429. suggest ways in which it could be improved then the author
  430. can be contacted directly.
  431.  
  432. Chris Johnson
  433. 7 Lovedale Grove
  434. Balerno
  435. Edinburgh
  436. EH14 7DR
  437.  
  438. If you have access to the JANET e-mail system then you
  439. can try
  440.             checaj@uk.ac.hw.clust
  441.  
  442. If you wish to enter into the 'shareware' concept in the
  443. full sense then registrations (>=ú3) will be gratefully
  444. received by the  author.
  445.  
  446. In any communication please
  447.  
  448.       (a) quote the version number and date
  449.  
  450.       (b) refer only to the program as issued.
  451.  
  452.       (c) supply as many details as possible about the
  453.           problem, and indicate the hardware configuration of
  454.           the machine being used.
  455.  
  456. PLEASE SEND A STAMPED AND SELF ADDRESSED ENVELOPE IF YOU
  457. REQUIRE A REPLY.
  458.  
  459. I hope you find the program of some use.
  460.  
  461. CafJ 10/10/1993
  462.  
  463.  
  464.  
  465.  
  466.