Insert \usepackage[latex={-interaction=nonstopmode -shell-escape},% pspdf={-dALLOWPSTRANSPARENCY},% pdfcrop={--hires},crop=on]{auto-pst-pdf} to your preamble. And correct \end{pspicture{} to \end{pspicture} Mike