#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "varcolor_5" jsdir "." # set output 'varcolor.5.js' set boxwidth 0.2 absolute unset key set style data lines set title "variable color using 'lc rgb variable'" set xrange [ 0.00000 : 11.0000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -4.00000 : 10.0000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault by3(x) = (((int(x)%3)+1)/6.) by4(x) = (((int(x)%4)+1)/7.) rgbfudge(x) = x*51*32768 + (11-x)*51*128 + int(abs(5.5-x)*510/9.) ## Last datafile plotted: "candlesticks.dat" plot 'candlesticks.dat' using 1:(1):(rgbfudge($1)) with points pt 11 lc rgb var, '' using 1:2:(.1):(rgbfudge($1)) with circles lc rgb var, '' using 1:3:2:6:5:(rgbfudge($1)) with candlesticks lc rgb var, '' using ($1+.3):3:2:6:5:(rgbfudge($1)) with financebars lc rgb var, '' using 1:(8):(by3($0)):(by4($0)):(rgbfudge($1)) with boxxy lc rgb var fs solid, '' using 1:(-$2/2):(rgbfudge($1)) with boxes lc rgb var