File: iterbugs.dem

package info (click to toggle)
gnuplot 6.0.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,940 kB
  • sloc: ansic: 95,319; cpp: 7,590; makefile: 2,470; javascript: 2,328; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (24 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# The combination of iteration and 3D plotting was problematic
# in earlier gnuplot versions.  Be aware that this test plot
# would trigger an almost-infinite loop in versions prior to
# gnuplot 6.
# This demo serves as a unit test to check for regressions.
#
unset xtics
unset ytics
set border 16
set view 60., 345., 1., 0.75

splot for [j=0:*] "whale.dat" index j using 1:($2-1):($3+1) \
                               with lines lc "grey" notitle, \
      for [k=1:2] sin(x+k) with surface lc "dark-turquoise" notitle, \
      for [l=1:1] for [m=0:*] "whale.dat" index m using (2-$1):($2+1):($3+1) \
                               with lines lc "steelblue" notitle, \
      keyentry with lines lc "grey" title "Grey Whale", \
      keyentry with boxes lc "dark-turquoise" title "waves", \
      keyentry with lines lc "steelblue" title "Blue Whale"

pause -1 "<cr> to continue"

reset