#Piece-wise Function Plot set terminal png size 600, 400 set output 'plot.png' #f(x) = 5*x for x<-3 ; f(x) = -5*x for x>3; f(x)=x otherwise f(x) =(x>3)? -5*x : (x<-3)? 5*x : x pl f(x) w lp