File: binary_polygon.dem

package info (click to toggle)
gnuplot 6.0.3%2Bdfsg1-1~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 14,960 kB
  • sloc: ansic: 95,874; cpp: 7,199; makefile: 2,470; javascript: 2,339; sh: 1,531; lisp: 664; perl: 304; pascal: 191; tcl: 88; python: 46
file content (30 lines) | stat: -rw-r--r-- 835 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
25
26
27
28
29
30
# binary_polygon.dem
#
# Illustrate use of general keyword option "blank=NaN" to treat
# NaN records in a binary data file equiavalently to blank lines
# in a text input file.
#
unset border
unset tics
unset key

set xrange [-1:1]
set isotropic
set view 150, 55, 1.25
set pm3d lighting primary 0.5 specular 0.2 spec2 0.3
set pm3d border lc "black"

set multiplot layout 1,2 title "Compare text and binary input data"

set title "text input data\nusing 1:2:3:4 with polygons lc variable"
splot 'dodecahedron.dat' using 1:2:3:(column(-1)+3) with polygons lc variable

set title "binary format='%3float64%int32' blank=NaN\n using 1:2:3:4 with polygons lc variable"
splot 'dodecahedron.bin' binary format="%3float64%int32" blank=NaN \
      using 1:2:3:($4+3) with polygons lc variable

unset multiplot

pause -1 "<cr> to continue"

reset