First make sure gnuplot is available on your system - it is usually available in ... gnuplot> set output 'sin_graph.png'.
mathewpeet.org