# set terminal canvas solid butt size 600,400 fsize 10 lw 1 fontscale 1 name "simple_2" jsdir "." # set output 'simple.2.js' plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))