Follow these;. Once you are happy with your plot, set your output terminal type to ``Postscript.'' gnuplot> set ...
stackoverflow.com