Opened 13 years ago

Last modified 13 years ago

#30846 closed defect

error saving to PDF in matplotlib — at Version 2

Reported by: astrofitz (Michael Fitzgerald) Owned by: ram@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: py27-matplotlib

Description (last modified by skymoo (Adam Mercer))

matplotlib is unable to save PDF files (test code attached). It crashes with an assertion error related to font encoding:

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/dviread.py", line 727, in _register
    assert encoding is None
AssertionError

A patch has been proposed to work around the issue:

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/v1_0_maint/lib/matplotlib/dviread.py?view=patch&r1=8512&r2=8955

Change History (3)

Changed 13 years ago by astrofitz (Michael Fitzgerald)

Attachment: test_pdf.py added

comment:1 Changed 13 years ago by astrofitz (Michael Fitzgerald)

Cc: astrofitz@… added

Cc Me!

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

Cc: ram@… astrofitz@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ram@…
Status: newassigned
Note: See TracTickets for help on using tickets.