# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'varcolor.4.png' set bar 1.000000 front set boxwidth 0.2 absolute set style circle radius graph 0.02, first 0.00000, 0.00000 set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy unset key set style textbox transparent margins 1.0, 1.0 border unset logscale set style data lines unset paxis 1 tics unset paxis 2 tics unset paxis 3 tics unset paxis 4 tics unset paxis 5 tics unset paxis 6 tics unset paxis 7 tics set title "variable color using 'lc palette z'" set xrange [ 0.00000 : 11.0000 ] noreverse nowriteback set yrange [ -4.00000 : 10.0000 ] noreverse nowriteback set paxis 1 range [ * : * ] noreverse nowriteback set paxis 2 range [ * : * ] noreverse nowriteback set paxis 3 range [ * : * ] noreverse nowriteback set paxis 4 range [ * : * ] noreverse nowriteback set paxis 5 range [ * : * ] noreverse nowriteback set paxis 6 range [ * : * ] noreverse nowriteback set paxis 7 range [ * : * ] noreverse nowriteback set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 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.) GPFUN_by3 = "by3(x) = (((int(x)%3)+1)/6.)" GPFUN_by4 = "by4(x) = (((int(x)%4)+1)/7.)" GPFUN_rgbfudge = "rgbfudge(x) = x*51*32768 + (11-x)*51*128 + int(abs(5.5-x)*510/9.)" x = 0.0 ## Last datafile plotted: "candlesticks.dat" plot 'candlesticks.dat' using 1:5:2:6:(.2):1 with boxerror lc pal z fs solid 0.5, '' using 1:(1):1 with points pt 11 lc pal z, '' using 1:(8):(by3($0)):(by4($0)):1 with xyerrorbars lc pal z, '' using ($1+.5):($2/2):1 with impulses lc pal z lw 3, '' using 1:(-3):(0.5):(1):1 with vectors lc pal z, '' using 1:(-1):1:1 with labels tc pal z