I'm having troubles saving figures as PDF.
Matplotlib version 0.90.1
Simple example below.

Cheers,
Alan Isaac


Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> fig = pylab.figure()
>>> pylab.plot([1,2,3])
[<matplotlib.lines.Line2D instance at 0x016FF828>]
>>> fig.savefig('c:/temp/temp.pdf')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python25\Lib\site-packages\matplotlib\figure.py", line 759, in 
savefig
    self.canvas.print_figure(*args, **kwargs)
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_tkagg.py", 
line 188, in print_figu
re
    **kwargs)
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line 
497, in print_figure

    printfunc(filename, dpi, facecolor, edgecolor, orientation, **kwargs)
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
1395, in print_figur
e
    file.close()
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
401, in close
    self.writeFonts()
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
456, in writeFonts
    fontdictObject = self.embedTTF(filename)
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
508, in embedTTF
    widths = [ get_char_width(charcode) for charcode in range(firstchar, 
lastchar+1) ]
  File "C:\Python25\Lib\site-packages\matplotlib\backends\backend_pdf.py", line 
505, in get_char_wid
th
    unicode = cp1252.decoding_map[charcode] or 0
AttributeError: 'module' object has no attribute 'decoding_map'
>>>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to