# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'watch_contours.1.png' unset key set style textbox opaque margins 0.5, 0.5 fc bgnd noborder linewidth 1.0 set style watchpoint label center boxed norotate font ",10" front textcolor lt -1 nopoint set view map scale 1 set samples 51, 51 set isosamples 51, 51 set contour base set cntrparam levels 7 set cntrparam levels incremental -9,3 set cntrparam firstlinetype 101 unsorted set style data lines set xtics border in scale 0,0 mirror norotate autojustify set ytics border in scale 0,0 mirror norotate autojustify set ztics border in scale 0,0 nomirror norotate autojustify set cbtics border in scale 0,0 mirror norotate autojustify set rtics border in scale 0,0 nomirror norotate autojustify set title "Contour label placement constrained by watchpoint function \n guide lines shown in gray" set trange [ * : * ] noreverse nowriteback set urange [ * : * ] noreverse nowriteback set vrange [ * : * ] noreverse nowriteback set xrange [ -1.00000 : 4.00000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -3.00000 : 3.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ -10.0000 : 10.0000 ] noreverse nowriteback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault f(x,y) = x**2 + y**2 * (1 - x)**3 line1(x,y) = y - (1.1*x -1) line2(x,y) = y + x - 0.9 VERSION = "gnuplot version 6.0.3" NO_ANIMATION = 1 array WATCH_1[3] = [3.0,2.44897959183673,1.73142857142857] array WATCH_2[7] = [{-0.52105803221385, -1.57316383543524},{-0.406512330761068, -1.44716356383718},{-0.2319330008529, -1.25512630093819},{2.31005613061878, 1.54106174368066},{2.45967952677991, 1.7056474794579},{2.56057672219988, 1.81663439441986},{2.63911428113745, 1.9030257092512}] array WATCH_3[7] = [{-0.580903190301393, 1.48090319030139},{-0.461769026994979, 1.36176902699498},{-0.279312976850236, 1.17931297685024},{2.37462235105939, -1.47462235105939},{2.52562736578394, -1.62562736578394},{2.62856231801193, -1.72856231801193},{2.70873943291919, -1.80873943291919}] ## Last datafile plotted: "+" ## Last plot was a multiplot # saved multiplot set multiplot unset contours splot '+' using 1:(0):(0) with lines lw 0.5 lc "gray", '+' using 1:(1.1*$1 - 1):(0) with lines lw 0.5 lc "gray", '+' using 1:(-$1 + 0.9):(0) with lines lw 0.5 lc "gray" set contours base set cntrparam levels incr -9,3, 9 splot f(x,y) with lines nosurface lw 2 watch y=0 label sprintf("%2d", int(z)), f(x,y) with lines nosurface lt nodraw watch line1(x,y)=0 label sprintf("%2d ", int(z)), f(x,y) with lines nosurface lt nodraw watch line2(x,y)=0 label sprintf("%2d ", int(z)) unset multiplot