File: 3Dboxes.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-- 766 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
set boxwidth 0.4 absolute
set boxdepth square
set style fill solid 1.00 border
set grid vertical xtics ytics ztics
set grid lt 0 lw 0.75
set wall z0  fc  rgb "slategrey"  fillstyle  transparent solid 0.50 border lt -1
set view 59, 24, 1, 1
set xyplane at 0
set xtics 0,1,10 offset  0.0, -0.5 add ("" 0)
set ytics 1,1,5  offset -0.5, -0.5
set xrange [0:11]
set yrange [0:6]
set pm3d depthorder base
set pm3d border linewidth 1.000
set pm3d lighting primary 0.5 specular 0.2 spec2 0
unset key

rgbfudge(x) = x*51*32768 + (11-x)*51*128 + int(abs(5.5-x)*510/9.)

set title "3D boxes with pm3d depth sorting and lighting" 
splot for [col=1:5] \
    'candlesticks.dat' using 1:(col):(col*column(col)):(rgbfudge($1)) with boxes fc rgb variable

pause -1 "<cr> to continue"