Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

example.f

Go to the documentation of this file.
00001 
00002 c
00003 c       Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c       by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c       All rights reserved.
00007 c
00008 c       Redistribution and use in source and binary forms are permitted
00009 c       provided that the above copyright notice and this paragraph are
00010 c       duplicated in all such forms and that any documentation,
00011 c       advertising materials, and other materials related to such
00012 c       distribution and use acknowledge that the software was developed
00013 c       by the author named above.
00014 c
00015 c       THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c       IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c       WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019         program example
00020 c
00021         dimension x(100),y(100),z(100)
00022 c
00023         do 10 i=1,100
00024             x(i) = 0.1*i
00025             y(i) = x(i)*sin(.1*x(i)**2)
00026             z(i) = 0.03*x(i) - 1.0
00027 10      continue
00028 c
00029         call mcinit
00030 c
00031 c       Move and re-origin:
00032 c       
00033         call plot(2.0,1.5,-3)
00034 c
00035         call minmax(x,100,xmin,xmax)
00036         call minmax(y,100,ymin,ymax)
00037         xlen = 7.0
00038         ylen = 4.0
00039         modex = 1
00040         modey = 2
00041 c
00042         call eframe(xmin,xmax,xlen,modex,'x-axis',
00043      &              ymin,ymax,ylen,modey,'y-axis')
00044 c     &             ymin,ymax,ylen,modey,' y-axis')
00045 c
00046         call mline(x,y,100,0,0,0.0)
00047 c
00048         call simbol(4.0,5.0,0.2,'Hi, Paul!',0.0,9)
00049         call strpos(0.75,0.5)
00050         call simbol(4.0,4.5,0.2,'Hi, Paul!%%',0.0,999)
00051         call clrstr
00052         call simbol(1.0,4.0,0.2,'@H@i, @P%a%u%l%!%%',45.0,99)
00053 c
00054         call newplot
00055 c
00056         modey = -1
00057         zmin = 0.1
00058         zmax = 100.0
00059         call sethts(.2,.3)
00060         call eframe(xmin,xmax,xlen,modex,'x-axis',
00061      &              zmin,zmax,ylen,modey,'A much longer y-axis label')
00062 c
00063         call setpat(1,2,1,3)
00064         call dline(x,z,100,10,5,0.1)
00065         call weight(10)
00066         call mline(x,y,100,-5,-(96+ichar('p')),0.5)
00067 c
00068         call weight(1)
00069         call simbol(0.5*xlen,ylen+0.25,0.2,'Happy hacking...%%',0.0,-999)
00070 c
00071         call mcquit
00072 c
00073         end

Generated at Sun Feb 24 09:57:00 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001