#Piece-wise Function Plot set terminal png size 600, 400 set output 'plot.png' #f(x) = x**2 for x>0 and f(x) = x otherwise f(x) =(x>0)? x**2 : x pl f(x) w lp lw 2