Title: invalid EPS figure in Mac OS X · Issue #3523 · matplotlib/matplotlib · GitHub
Open Graph Title: invalid EPS figure in Mac OS X · Issue #3523 · matplotlib/matplotlib
X Title: invalid EPS figure in Mac OS X · Issue #3523 · matplotlib/matplotlib
Description: 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 ...
Open Graph Description: 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...
X Description: 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 s...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3523
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"invalid EPS figure in Mac OS X","articleBody":"I've upgraded to matplotlib 1.4.0 and am getting invalid EPS files (according to Preview) when I save figures that use\n\n basemap (1.0.7). The same figure in PNG or PDF format works fine. I also saved a bar chart in EPS that worked.\n\nI 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.\n\nBelow is the code I was trying:\n\n``` python\nimport matplotlib\nmatplotlib.use('Agg')\nimport matplotlib.pyplot as plt \nimport numpy as np\nfrom mpl_toolkits.basemap import Basemap\n\nplt.figure()\nm = Basemap(projection='npstere',lon_0=-270.,boundinglat=30.,round=True)\nm.drawcoastlines(linewidth=1)\nm.drawmapboundary(linewidth=1)\nm.fillcontinents(color='silver')\nm.drawmeridians(np.arange(-360,1,60))\nm.drawparallels(np.arange(30,90,30))\n\nplt.savefig('test.eps')\nplt.savefig('test.pdf')\nplt.savefig('test.png')\n```\n\n[TAC edited for formatting]\n","author":{"url":"https://github.com/bryan-woods","@type":"Person","name":"bryan-woods"},"datePublished":"2014-09-16T17:32:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/3523/matplotlib/issues/3523"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7124a419-4a40-bb0f-f286-861677d5c5c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8820:234B42:1518D3D:1CD619D:6A53D9EB |
| html-safe-nonce | 5ff36dcf00812af8bffe3ebab20782b76dcd37c40634f69d234ad5580597f447 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODIwOjIzNEI0MjoxNTE4RDNEOjFDRDYxOUQ6NkE1M0Q5RUIiLCJ2aXNpdG9yX2lkIjoiMzkwODA2ODUwNDc5NzE3NDI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 678a88714daa882cdedd021e26877b9c4cb4a682204fc02467103006a15af78d |
| hovercard-subject-tag | issue:42909541 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/3523/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8427dc34940a06da836bf6f8557a99a90cbe2b50d9aed7f7c2eceeb15c452168/matplotlib/matplotlib/issues/3523 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8427dc34940a06da836bf6f8557a99a90cbe2b50d9aed7f7c2eceeb15c452168/matplotlib/matplotlib/issues/3523 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bryan-woods |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width