#Function plot: double y axis set terminal png size 400, 300 set output 'plot.png' set xrange [-10:10] set yrange [-1:5] set y2range [-1:3] set ylabel "f(x)" set y2label "g(x)" set title "double y axis plot" set xtics -10, 2, 10 set ytics -1, 1, 5 set y2tics -1, 1, 5 plot x**2 axis x1y1 w p title 'f(x)', exp(-x**2/2) axis x1y2 w lp title 'gf(x)'