# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350 # set output 'candlesticks.4.png' set boxwidth 0.2 absolute set title "candlesticks showing both states of open/close" set xrange [ 0.00000 : 11.0000 ] noreverse nowriteback set yrange [ 0.00000 : 10.0000 ] noreverse nowriteback plot 'candlesticks.dat' using 1:(int($0)%3?$3:$5):2:6:(int($0)%3?$5:$3) with candlesticks title "open < close", NaN with boxes lt 1 fs solid 1 title "close < open"