home *** CD-ROM | disk | FTP | other *** search
- echo off
- cls
- echo .
- echo .
- echo .
- rem PLOTDEMO.BAT
- echo .
- echo .
- echo EASIPLOT demonstration
- echo .
- echo This is just a short demonstration which shows you some of the
- echo graphs that EASIPLOT can produce. For it to run properly you
- echo must be logged on to the disk containing the graph files (which
- echo are all called something.GRP) and the file called EASIPLOT.EXE
- echo must also be present.
- echo .
- echo All the graph files were produced using EASISTAT, but please
- echo note that this demonstration is not run from EASISTAT, but as an
- echo ordinary DOS batch file. There is another demonstration on the
- echo disk which is run from EASISTAT, called PDEMO (from which the
- echo data for this demonstration was produced). To run that one
- echo first run EASISTAT, then put this disk in the drive, and then
- echo while still in EASISTAT type INPUT PDEMO. To run this current
- echo demonstration you should have quit EASISTAT and then you just
- echo type PLOTDEMO.
- echo .
- pause
- echo .
- echo EASIPLOT and EASISTAT are Shareware programs. If you find
- echo them useful then please become a registered user by sending
- echo a cheque for thirty pounds sterling to:
- echo .
- echo ARC Scientific Limited,
- echo 257 Woodstock Road,
- echo Oxford OX2 7AE.
- echo .
- echo Tel. 0865 310167
- echo .
- echo You will receive up-to-date versions of the programs and a
- echo full printed manual for EASISTAT (but not EASIPLOT). Please pass
- echo unmodified copies of these programs on to friends and colleagues
- echo together with the other files which are supplied with them.
- echo .
- echo For further information about how to use EASIPLOT please
- echo read the file called EASIPLOT.DOC which should be on your disk.
- echo To print it out when this demonstration has finished type:
- echo .
- echo PRINT EASIPLOT.DOC
- echo .
- pause
- echo .
- echo Now we'll start the demonstration.
- echo .
- echo We'll start by showing the frequency distribution of HDA scores
- echo in a population. These are contained in a graph file called
- echo HDA.GRP. This batch file will run EASIPLOT to display the graph.
- echo The only thing you really need to know is how to quit EASIPLOT,
- echo which you do by pressing 'Q' when the graph is displayed. Then
- echo you will return to this demonstration. Information about the
- echo options available in EASIPLOT are described in the file
- echo EASIPLOT.DOC.
- echo .
- echo You may wish to hide the menu displayed at the bottom of
- echo screen so that you can see the graph properly. To do this
- echo press 'M' and to get it back press 'M' again.
- echo .
- echo Press a key when you are ready to run EASIPLOT and view the
- echo graph.
- echo .
- echo Note: if EASIPLOT doesn't work the most likely reason will be
- echo that you first need to set FGDISPLAY, e.g. SET FG_DISPLAY=HERC
- echo .
- if not exist hda.grp goto :nofiles
- pause
- echo on
- easiplot hda.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo Well, you got back here OK. If EASIPLOT didn't work
- echo properly then you may need to configure your system and you
- echo may want to consult the file EASIPLOT.DOC before continuing
- echo with this demonstation. If EASIPLOT said that it could not open
- echo HDA.GRP then you may be logged on to the wrong disk. You should
- echo quit the demonstration, then type
- echo .
- echo A:
- echo PLOTDEMO
- echo .
- echo on different lines.
- echo .
- echo If you wish to leave the demonstration press Control-C (then
- echo 'Y').
- echo .
- pause
- echo .
- echo Still here? Good.
- echo .
- echo Now let's see a breakdown of GHQ scores (more emotional
- echo distress) by social class. This information was derived from the
- echo ANOVA function of EASISTAT and is in the file called ANOVA.GRP.
- echo .
- echo To see the means of each group when the graph is showing press
- echo 'R', then '3' then ENTER.
- echo .
- pause
- echo on
- easiplot anova.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo Next is a histogram of GHQ cases and non-cases (scores less
- echo than 12) against social class. It's in HISTO.GRP.
- echo .
- echo Press a key to view the graph. When it is showing 'X' will
- echo swap over the groupings and '3' will make the blocks solid.
- echo .
- pause
- echo on
- easiplot histo.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo Now let's try plotting HDA against GHQ. The data is in
- echo REGRESS.GRP.
- echo .
- echo To view the regression line when the graph is showing press
- echo 'R', then '1' then ENTER.
- echo .
- pause
- echo on
- easiplot regress.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo To finish the demonstration we'll give examples of how EASIPLOT
- echo can produce graphs of mathematical functions. Press a key to see
- echo the graphs.
- echo .
- pause
- echo on
- easiplot trigs.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo We'll try for a pseudo-3D one now. It's called the frilly
- echo circle. To see the third dimension press '3' when the graph is
- echo showing.
- echo .
- pause
- echo on
- easiplot frilly.grp
- echo off
- cls
- echo .
- echo .
- echo .
- echo .
- echo The equation for that curve was:
- echo X=SIN(theta) Y=SIN(8*theta) and Z=COS(theta)
- echo .
- echo Like EASISTAT, it is possible to control EASIPLOT from a
- echo command file. To demonstrate this we'll first create a file
- echo called TEMP.JF:
-
- echo mk1 > temp.jf
- if not exist temp.jf goto skipbatch
- echo t67 >> temp.jf
- echo Here's a floating title >>temp.jf
- echo 0.1,0.1,0 >>temp.jf
- echo _ >>temp.jf
- echo _ _ >>temp.jf
- echo t67 >> temp.jf
- echo _ >>temp.jf
- echo _ >>temp.jf
- echo Here's one going up >>temp.jf
- echo 0.8,0.2,90 >>temp.jf
- echo _ >>temp.jf
- echo _ _ >>temp.jf
- echo t67 >> temp.jf
- echo _ >>temp.jf
- echo _ >>temp.jf
- echo _ >>temp.jf
- echo _ >>temp.jf
- echo Press Q to quit EASIPLOT >>temp.jf
- echo 0.2,0.3,0 >>temp.jf
- echo _ >>temp.jf
- echo _ _ >>temp.jf
-
- echo .
- echo TEMP.JF has been created on disk. Now when we run EASIPLOT
- echo you should see extra titles being added automatically by
- echo this command file.
- echo .
- echo Press '3' to see a helix.
- echo .
- pause
- echo on
- easiplot spring.grp temp.jf
- echo off
- cls
- goto usedbatch
- :skipbatch
- echo There was a problem in creating TEMP.JF (perhaps the disk is
- echo write-protected). The graph will be displayed anyway.
-
- echo .
- echo Press '3' to see a helix.
- echo .
- pause
- echo on
- easiplot spring.grp
- echo off
- cls
- :usedbatch
- echo .
- echo .
- echo .
- echo .
- echo OK that's all for now.
- echo .
- echo Please read the file called EASIPLOT.DOC to learn more
- echo about EASIPLOT. If you like it then please become a
- echo registered user.
- echo .
- echo ARC Scientific Limited,
- echo 257 Woodstock Road,
- echo Oxford OX2 7AE.
- echo .
- echo .
- echo .
- goto end
-
- :nofiles
- echo The file HDA.GRP is not present in the working directory. You
- echo should make sure that you are logged on to the correct drive and
- echo directory. If you have EASIPLOT on a 5" floppy disk you should
- echo enter:
- echo .
- echo A:
- echo PLOTDEMO
- echo .
- echo If you have a 3" disk then all the EASIPLOT files should be in a
- echo subdirectory called EPDISK and you should enter:
- echo .
- echo A:
- echo CHDIR \EPDISK
- echo PLOTDEMO
-
- :end
-
-