latex labels on saved plots


    I'm having trouble saving eps or pdf versions of plots that have TeX labels using matplotlib. When I try to save an EPS file, I get the message:

RuntimeError: ghostscript was not able to process your image.
Here is the full report generated by ghostscript:

(Author's note: No 'report' is actually printed)

    When I try to save a PDF file, I get the message:

  File "C:\Python24\Lib\site-packages\matplotlib\backends\", line 1085, in get_canvas_
    return d*self.file.width, d*self.file.height
AttributeError: PdfFile instance has no attribute 'width'

    Does anyone have any suggestions for how to fix this? The TeX labels work fine is I save as a PNG file. I saw an older thread ( ) that seems to address similar issues, but I don't understand the solution (using XPDF distiller).

Thank you for your help,