Opened 13 years ago

Closed 13 years ago

#30846 closed defect (fixed)

error saving to PDF in matplotlib

Reported by: astrofitz (Michael Fitzgerald) Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc: mwest@…, ob+macport@…
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

Attachments (1)

test_pdf.py (68 bytes) - added by astrofitz (Michael Fitzgerald) 13 years ago.

Download all attachments as: .zip

Change History (7)

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

comment:3 Changed 13 years ago by mwest@…

Cc: mwest@… added

Cc Me!

comment:4 Changed 13 years ago by ob+macport@…

Cc: ob+macport@… added

Cc Me!

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

patch applied in r83552, sorry for the delay but I was travelling and then my machine was in for repair

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.