Back to demo index

gnuplot demo script: candlesticks.dem

autogenerated by webify.pl on Wed Jul 15 17:33:24 2015
gnuplot version gnuplot 5.0 patchlevel 1
#
# $Id: candlesticks.dem,v 1.5 2008/05/31 05:19:01 sfeam Exp $
#

#
set xrange [0:11]
set yrange [0:10]
#
set title "candlesticks with open boxes (default)"
plot 'candlesticks.dat' using 1:3:2:6:5 with candlesticks
#

Click here for minimal script to generate this plot



#
set title "candlesticks with specified boxwidth"
set boxwidth 0.2
replot
#

Click here for minimal script to generate this plot



#
set title "candlesticks with style fill solid"
set style fill solid
set boxwidth 0.2
replot
#

Click here for minimal script to generate this plot



#
set title "candlesticks showing both states of open/close"
set style fill empty
set boxwidth 0.2
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"
#

Click here for minimal script to generate this plot



#
set title "box-and-whisker plot adding median value as bar"
set style fill empty
plot 'candlesticks.dat' using 1:3:2:6:5 with candlesticks lt 3 lw 2 title 'Quartiles', \
     ''                 using 1:4:4:4:4 with candlesticks lt -1 lw 2 notitle
#

Click here for minimal script to generate this plot



#
set title "box-and-whisker with median bar and whiskerbars"
plot 'candlesticks.dat' using 1:3:2:6:5 with candlesticks lt 3 lw 2 title 'Quartiles' whiskerbars, \
     ''                 using 1:4:4:4:4 with candlesticks lt -1 lw 2 notitle

Click here for minimal script to generate this plot



#