File: candlesticks.dem

package info (click to toggle)
gnuplot5 5.0.0~rc%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,548 kB
  • ctags: 8,104
  • sloc: ansic: 77,108; cpp: 6,848; makefile: 1,932; sh: 1,343; lisp: 657; perl: 302; awk: 235; pascal: 194; tcl: 88; python: 46
file content (50 lines) | stat: -rw-r--r-- 1,374 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# $Id: candlesticks.dem,v 1.5 2008/05/31 05:19:01 sfeam Exp $
#

reset
#
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
#
pause -1 "Hit return to continue"
#
set title "candlesticks with specified boxwidth"
set boxwidth 0.2
replot
#
pause -1 "Hit return to continue"
#
set title "candlesticks with style fill solid"
set style fill solid
set boxwidth 0.2
replot
#
pause -1 "Hit return to continue"
#
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"
#
pause -1 "Hit return to continue"
#
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
#
pause -1 "Hit return to continue"
#
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
pause -1 "Hit return to continue"
#
     
reset