home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / GLE33B_1.ZIP / GLE4.ZIP / BARS.GLE < prev    next >
Encoding:
Text File  |  1990-11-22  |  1.4 KB  |  60 lines

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