# Piecewise function with a hole set terminal png size 400, 300 set output 'plot.png' f(x) = (x != 0) ? x**2/x : NaN set xrange [-2:2] set yrange [-2:2] plot f(x)