Previous: cross-reference Up: ../graph.html Next: avrage-array


SAMPLE-INPUT-FILE

 The following data  groups illustrate  some uses of  GRAPH.  The  first
 plots a  trivial  sawtooth  wave,  and  shows  the  minimum  amount  of
 information needed  to create  a simple  graph.  The  second and  third
 demonstrate histograms and Greek letters in the titles.

 $DATA X(1,1)=0, 2, 4, 8, 10,
       Y(1,1)=0, 2, 0, 2, 0,
 $END
 Sawtooth Wave
 X-axis
 Y-axis

 $DATA X(1,1)= 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
       Y(1,1)=12,23,12,23,12,23,12,23,12,23, 12,
       Y(1,2)= 5,24, 2, 5,17, 3, 6,18,15, 0, -4,
       XMIN=0,XMAX=10,NXSUB=5,
       YMIN=0,YMAX=25,NYSUB=5,
       INTGRT(1)=T,AVRAGE(1)=T,
       N=2*11,KX=1,KY=2,
       IDFONT=2,HSCALE=0.9,VSCALE=0.9,
       IDFONT=5,
       HISTGM(1)=2*T,LSTYLE(1)=2*0,BWIDTH(1)=2*0.6,
 $END
 #G@ vs #TH
 #TH@ axis
 #G@ axis


 $DATA X(1,1)=1,Y(1,1)=10,
      X(1,2)=1,Y(1,2)=-9,
      X(1,3)=3,Y(1,3)=24,
      X(1,4)=3,Y(1,4)=-19,
      X(1,5)=5,Y(1,5)=16,
      X(1,6)=5,Y(1,6)=-24,
      X(1,7)=7,Y(1,7)=5,
      X(1,8)=7,Y(1,8)=-5.5,
      X(1,9)=9,Y(1,9)=21,
      X(1,10)=9,Y(1,10)=-20.5,
      X(1,11)=11,Y(1,11)=17,
      X(1,12)=11,Y(1,12)=-24.9,
      N=12*1,          KX=12,          KY=12,
      XMIN=-5,         XMAX=15,        DXSUB=1,   MODEX=-13,
      YMIN=-25,        YMAX=25,        DYSUB=5,
      IDFONT=5,
      HISTGM(1)=12*T,  LSTYLE(1)=12*0, YBASE(1)=12*0, BWIDTH(1)=12*0.70,
      HMASK(1)=12*T, BWIDTH(1)=12*5.0,
 $END
 Histogram Bars
 X Axis
 Y Axis