You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've upgraded to matplotlib 1.4.0 and am getting invalid EPS files (according to Preview) when I save figures that use
basemap (1.0.7). The same figure in PNG or PDF format works fine. I also saved a bar chart in EPS that worked.
I have verified that this happens in both OS X Mavericks and Mountain Lion. It doesn't matter whether I install using pip or homebrew. If I downgrade to matplotlib 1.3.1 it works fine.
which the language reference manual seems to say is the syntax for putting in hex numbers (if I am reading it right) so I suspect something is going really wrong in the writer...
Activity
tacaswell commentedon Sep 16, 2014
If you are using python3 I think this is a duplicate of #3494 .
tacaswell commentedon Sep 16, 2014
Or at least related as that other bug also happen is 1.3.1.
bryan-woods commentedon Sep 16, 2014
I am using python 2.7.8
tacaswell commentedon Sep 16, 2014
Can you post the corrupt file someplace?
bryan-woods commentedon Sep 16, 2014
Corrupt file: http://ge.tt/71cCd7x1/v/0
tacaswell commentedon Sep 16, 2014
I am back to this being a duplicate as the eps includes the line
Which I think should really be
and this is the conversion to
sixcausing a few more problems.Can you check if the patch at https://github.com/matplotlib/matplotlib/pull/3496.diff fixes the problem for you?
bryan-woods commentedon Sep 16, 2014
No dice. The EPS is the same, except for the %%CreationDate
BUG : decode byte-strings
tacaswell commentedon Sep 16, 2014
ahh, I see, same problem,different place. How about with https://github.com/matplotlib/matplotlib/pull/3525.diff ? (I don't have a mac I can test on).
bryan-woods commentedon Sep 16, 2014
Still no change to the EPS.
tacaswell commentedon Sep 16, 2014
Sorry, I was on a wild-goose chase, I was looking at the wrong
test.epsin my download directory....tacaswell commentedon Sep 16, 2014
The file has lines that look like this:
which the language reference manual seems to say is the syntax for putting in hex numbers (if I am reading it right) so I suspect something is going really wrong in the writer...
BUG : fix eps corruption when using clipping
tacaswell commentedon Sep 16, 2014
@bryan-woods Ok, lets try this again, have a look at https://github.com/matplotlib/matplotlib/pull/3526.diff
bryan-woods commentedon Sep 17, 2014
That's the winner!
tacaswell commentedon Sep 17, 2014
Great! I would like to keep this issue open until that PR gets merged, it helps with tracking what still needs to be done.