{"action":"closed","issue":{"url":"https://api.github.com/repos/SciTools/cartopy/issues/768","repository_url":"https://api.github.com/repos/SciTools/cartopy","labels_url":"https://api.github.com/repos/SciTools/cartopy/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/SciTools/cartopy/issues/768/comments","events_url":"https://api.github.com/repos/SciTools/cartopy/issues/768/events","html_url":"https://github.com/SciTools/cartopy/issues/768","id":156083529,"number":768,"title":"Missing Plotting","user":{"login":"Yefee","id":6420873,"avatar_url":"https://avatars.githubusercontent.com/u/6420873?v=3","gravatar_id":"","url":"https://api.github.com/users/Yefee","html_url":"https://github.com/Yefee","followers_url":"https://api.github.com/users/Yefee/followers","following_url":"https://api.github.com/users/Yefee/following{/other_user}","gists_url":"https://api.github.com/users/Yefee/gists{/gist_id}","starred_url":"https://api.github.com/users/Yefee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yefee/subscriptions","organizations_url":"https://api.github.com/users/Yefee/orgs","repos_url":"https://api.github.com/users/Yefee/repos","events_url":"https://api.github.com/users/Yefee/events{/privacy}","received_events_url":"https://api.github.com/users/Yefee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-21T04:41:40Z","updated_at":"2016-05-26T18:18:39Z","closed_at":"2016-05-26T18:18:39Z","body":"Hi, guys \r\n\r\nI am not sure if I find a bug here. \r\nTo reproduce the it, please see the attached code.\r\n\r\n```javascript\r\nimport cartopy.crs as ccrs\r\nimport cartopy\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n# lat [-89.5,, 89.5] and lon[0.5 359.5]\r\nlon = np.arange(0.5, 360.5, 1)\r\nlat = np.arange(-89.5, 90.5, 1)\r\nz = lambda x, y: 3 * (1 - x)**2 * np.exp(-(x**2) - (y + 1)**2) \\\r\n    - 10 * (x / 5 - x**3 - y**5) * np.exp(-x**2 - y**2) \\\r\n    - 1 / 3 * np.exp(-(x + 1)**2 - y**2)\r\nlon, lat = np.meshgrid(lon, lat)\r\ndat = z(lon, lat)\r\nfig = plt.figure()\r\nax = fig.add_subplot(111, projection=ccrs.PlateCarree())\r\ncf = ax.contourf(lon, lat, dat, cmap='coolwarm', transform=ccrs.PlateCarree())\r\nax.set_global()\r\nax.add_feature(cartopy.feature.LAND, facecolor='white')\r\nax.coastlines()\r\n_ = ax.gridlines()\r\nplt.savefig('bug.pdf')\r\n# plt.show() \r\n```\r\nIf the lon ranges from 0.5 to 359.5 degree, there is a margin at 0 degree on the map when I save it as pdf. Saving it as png is fine.\r\n\r\n[bug.pdf](https://github.com/SciTools/cartopy/files/275704/bug.pdf)\r\n"}}
{"actor":{"display_login":"ajdawson"}}