Back to demo index

gnuplot demo script: dashtypes.dem

autogenerated by webify.pl on Thu May 1 14:01:50 2014
gnuplot version gnuplot 5.0 patchlevel alpha
Your browser does not support the HTML 5 canvas element
          # unzoom rezoom zoom text ?
     
#
# Exercise various dashtype options
# (Version 5 only)
#
set border 0
unset xtics
unset ytics
unset key

y = 0.9
set label 101 at screen 0.1, screen y "Terminal's native dashtypes"
do for [i=1:10] {
    y = y - 0.05
    set arrow i from screen 0.25, screen y to screen 0.8, screen y nohead lw 2 lt 2 dt i
    set label i "dt ".i at screen 0.15, screen y
}
y = y - 0.05
set label 102 at screen 0.1, screen y "Custom dashtypes"
y = y - 0.05
    new = "."
    set label at screen 0.15, screen y 'dt "'.new.'"'
    set arrow from screen 0.25, screen y to screen 0.8, screen y nohead lw 2 lt 3 dt new
y = y - 0.05
    new = "-"
    set label at screen 0.15, screen y 'dt "'.new.'"'
    set arrow from screen 0.25, screen y to screen 0.8, screen y nohead lw 2 lt 3 dt new
y = y - 0.05
    new = "._"
    set label at screen 0.15, screen y 'dt "'.new.'"' noenh
    set arrow from screen 0.25, screen y to screen 0.8, screen y nohead lw 2 lt 3 dt new
y = y - 0.05
    new = "..- "
    set label at screen 0.15, screen y 'dt "'.new.'"'
    set arrow from screen 0.25, screen y to screen 0.8, screen y nohead lw 2 lt 3 dt new

plot 0 with lines lt nodraw


Click here for minimal script to generate this plot