home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 8 / CDACTUAL8.iso / share / os2 / graficos / gle / bars.gle < prev    next >
Encoding:
Text File  |  1994-01-12  |  1.4 KB  |  61 lines

  1. size 18 24 
  2. set font pldr
  3. set hei .3
  4. amove .2 .3
  5. text bars.gle
  6.  
  7. !----------------------------------------------------------------------------
  8. ! Error Bars 
  9. amove 0 14
  10. begin graph
  11.     size 18 10
  12.     xtitle "Sin and Cos Waves"
  13.     title "Trial of Error Bars"
  14.     yaxis min 0 max 30
  15.     let d1 = (sin(x)+1)*10+1 from 1 to 9 step 1
  16.     let d2 = (cos(x)+1)*10+1 from 1.5 to 9.5 step 1
  17.     dn lstyle 2
  18.     d1 marker circle errup 30% errdown 1 
  19.     d2 marker fsquare  err 30% errwidth .1 
  20. end graph
  21. !----------------------------------------------------------------------------
  22. ! Silly axis settings
  23. amove 0 5
  24. begin graph
  25.     size 18 9
  26.     title "The main title"
  27.     xaxis min 0 max 9 nofirst nolast
  28.     xaxis hei .6 nticks 10  dsubticks .2
  29.     xaxis lwidth .2 color red
  30.     yaxis log min 1 max 10 lwidth .1
  31.     y2axis  min 3 max 3000
  32.     y2side color blue lwidth 0 
  33.     y2ticks length .9 lwidth 0 
  34.     y2title "Y2title log " hei .2
  35.     x2axis off
  36.     y2labels on
  37.     let d1 = sin(x)*4+5 from 0 to 9 
  38.     dn line
  39. end graph
  40. !----------------------------------------------------------------------------
  41. ! Two Bar Graphs 
  42. amove 0 0
  43. begin graph
  44.     SIZE 9 5
  45.     Title "Bar example"
  46.     data test.dat
  47.     bar d1,d2 fill green,blue 
  48.     fill x1,d1 color grey10
  49. end graph
  50. rmove 9 0
  51. begin graph
  52.     SIZE 9 5
  53.     Title "Bar example 2" 
  54.     data test.dat
  55.     let d3 = d1+2
  56.     let d4 = d2*1.2
  57.     yaxis min 0 max 20
  58.     bar d1,d2 fill grey10,grey50 width .3 dist .3
  59.     bar d3,d4 from d1,d2 fill grey20,grey90 width .3 dist .3
  60. end graph
  61.