# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'stringvar.1.png' unset border set label 1 "" at graph 0.1, 0.95, 0 left norotate back nopoint set label 2 "Exercise substring handling" at graph 0.1, 0.9, 0 left norotate back nopoint set label 3 "" at graph 0.1, 0.85, 0 left norotate back nopoint set label 4 "beg = 2 end = 4" at graph 0.1, 0.8, 0 left norotate back nopoint set label 5 "foo = ABCDEF" at graph 0.1, 0.75, 0 left norotate back nopoint set label 6 "foo[3:5] = CDE" at graph 0.1, 0.7, 0 left norotate back nopoint set label 7 "foo[1:1] = A" at graph 0.1, 0.65, 0 left norotate back nopoint set label 8 "foo[5:3] = " at graph 0.1, 0.6, 0 left norotate back nopoint set label 9 "foo[beg:end] = BCD" at graph 0.1, 0.55, 0 left norotate back nopoint set label 10 "foo[end:beg] = " at graph 0.1, 0.5, 0 left norotate back nopoint set label 11 "foo[5:] = EF" at graph 0.1, 0.45, 0 left norotate back nopoint set label 12 "foo[5:*] = EF" at graph 0.1, 0.4, 0 left norotate back nopoint set label 13 "foo[:] = ABCDEF" at graph 0.1, 0.35, 0 left norotate back nopoint set label 14 "foo[*:*] = ABCDEF" at graph 0.1, 0.3, 0 left norotate back nopoint set label 15 "foo.foo[2:2] = ABCDEFB" at graph 0.1, 0.25, 0 left norotate back nopoint set label 16 "(foo.foo)[2:2]= B" at graph 0.1, 0.2, 0 left norotate back nopoint set label 17 "" at graph 0.1, 0.15, 0 left norotate back nopoint set label 18 "foo[1:1] eq 'A' && foo[2:2] ne 'X' = true" at graph 0.1, 0.1, 0 left norotate back nopoint set style increment default set style data lines unset xtics unset ytics set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set yrange [ 0.00000 : 1.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback iswindows = 0 beg = 2 end = 4 foo = "ABCDEF" plot 0 lc bgnd notitle