-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
invalid EPS figure in Mac OS X #3523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you are using python3 I think this is a duplicate of #3494 . |
Or at least related as that other bug also happen is 1.3.1. |
I am using python 2.7.8 |
Can you post the corrupt file someplace? |
Corrupt file: http://ge.tt/71cCd7x1/v/0 |
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 Can you check if the patch at https://github.com/matplotlib/matplotlib/pull/3496.diff fixes the problem for you? |
No dice. The EPS is the same, except for the %%CreationDate |
Attempt to fix matplotlib#3523
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). |
Still no change to the EPS. |
Sorry, I was on a wild-goose chase, I was looking at the wrong |
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... |
_get_clip_path was returning '<built-in function id>' instead of the ps-function name like it should have been. This was introduced in 9b9c0c6 in PR matplotlib#2927. Closes matplotlib#3523
@bryan-woods Ok, lets try this again, have a look at https://github.com/matplotlib/matplotlib/pull/3526.diff |
That's the winner! |
Great! I would like to keep this issue open until that PR gets merged, it helps with tracking what still needs to be done. |
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.
Below is the code I was trying:
[TAC edited for formatting]
The text was updated successfully, but these errors were encountered: