plotting to psfile?



I was hoping to produce a postscript EPS file of a plot (so I could include
it in a TeX file), using Maxima.  I thought something like this would work:

plot2d(sin(x),[x,-%pi,%pi],[psfile,"sinplot"]);

but what was produced was a gnuplot file, not EPS.

Did I do something wrong?