{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5895","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5895/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5895/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5895/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5895","id":128009306,"number":5895,"title":"Polar Projection PDF Issue","user":{"login":"avipersin","id":8727319,"avatar_url":"https://avatars.githubusercontent.com/u/8727319?v=3","gravatar_id":"","url":"https://api.github.com/users/avipersin","html_url":"https://github.com/avipersin","followers_url":"https://api.github.com/users/avipersin/followers","following_url":"https://api.github.com/users/avipersin/following{/other_user}","gists_url":"https://api.github.com/users/avipersin/gists{/gist_id}","starred_url":"https://api.github.com/users/avipersin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avipersin/subscriptions","organizations_url":"https://api.github.com/users/avipersin/orgs","repos_url":"https://api.github.com/users/avipersin/repos","events_url":"https://api.github.com/users/avipersin/events{/privacy}","received_events_url":"https://api.github.com/users/avipersin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-21T20:11:01Z","updated_at":"2016-01-22T18:31:05Z","closed_at":null,"body":"Python 3.4\r\nConda 3.18.3\r\nMatplotlib 1.5.1\r\nbasemap 1.0.7\r\nAdobe Reader XI\r\n\r\nTrying to plot a polar projection with a custom shapefile results in an error when opening the PDF in Adobe Reader. \r\n\r\nI am creating two orthographic projections (a southern and northern hemisphere).\r\n```\r\nbasemaps.append(Basemap(projection='ortho', lon_0=270, lat_0=90., resolution='c', ax=axes[0]))\r\nbasemaps.append(Basemap(projection='ortho', lon_0=90, lat_0=-90., resolution='c', ax=axes[1]))\r\n```\r\nI then draw a full world shapefile on each projection:\r\n```\r\nbasemap.readshapefile('Earth', 'globe')\r\n...\r\nplt.savefig('amaps.pdf')\r\n```\r\nEverything works fine here and both basemaps display with the proper lines and shapes drawn. However, when downloading the PDF and displaying it in Adobe Acrobat, you will get something like this: \r\n[amap.pdf](https://github.com/matplotlib/matplotlib/files/99791/amap.pdf) (which looks fine if you view it in your browser, but try downloading it and opening it with Adobe Reader).  We've determined that the problem arises when the coastline includes lon, lat pairs in the opposite hemisphere from the hemisphere that it is to be drawn in. So if you are drawing the southern hemisphere, you cannot read a shapefile that has lon, lat points in the norther hemisphere, and vise-versa.\r\n\r\nOur workaround required creating two separate shapefiles, one for the northern hemisphere and one for the southern.  So now it looks like this:\r\n```\r\n# drawing northern hemisphere\r\nif polar and idx == 0:\r\n    basemap.readshapefile('Earth_north', 'nh')\r\nelif polar and idx == 1:\r\n# drawing southern hemisphere\r\n    basemap.readshapefile('Earth_south', 'sh')\r\n# drawing all other projections\r\nelse:\r\n    basemap.readshapefile('Earth', 'globe')\r\n```\r\nThis works fine but shouldn't be necessary."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/174002999","html_url":"https://github.com/matplotlib/matplotlib/issues/5895#issuecomment-174002999","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5895","id":174002999,"user":{"login":"avipersin","id":8727319,"avatar_url":"https://avatars.githubusercontent.com/u/8727319?v=3","gravatar_id":"","url":"https://api.github.com/users/avipersin","html_url":"https://github.com/avipersin","followers_url":"https://api.github.com/users/avipersin/followers","following_url":"https://api.github.com/users/avipersin/following{/other_user}","gists_url":"https://api.github.com/users/avipersin/gists{/gist_id}","starred_url":"https://api.github.com/users/avipersin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avipersin/subscriptions","organizations_url":"https://api.github.com/users/avipersin/orgs","repos_url":"https://api.github.com/users/avipersin/repos","events_url":"https://api.github.com/users/avipersin/events{/privacy}","received_events_url":"https://api.github.com/users/avipersin/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T18:31:04Z","updated_at":"2016-01-22T18:31:04Z","body":">Can you provide a complete example (with fake data) so I can reproduce?\r\n\r\nHere is a link to the GitHub repo I made to illustrate the issue: https://github.com/avipersin/BasemapPDF.git\r\n\r\nIf you run basemap.py and open map.pdf in Adobe Reader you will see the problem."}}