{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/902","labels_url":"https://api.github.com/repos/obspy/obspy/issues/902/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/902/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/902/events","html_url":"https://github.com/obspy/obspy/pull/902","id":46806287,"number":902,"title":"Cartopy plotting","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.imaging","name":".imaging","color":"0b02e1"},{"url":"https://api.github.com/repos/obspy/obspy/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/8","html_url":"https://github.com/obspy/obspy/milestones/0.11.0","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/8/labels","id":725009,"number":8,"title":"0.11.0","description":"","creator":{"login":"barsch","id":602450,"avatar_url":"https://avatars.githubusercontent.com/u/602450?v=3","gravatar_id":"","url":"https://api.github.com/users/barsch","html_url":"https://github.com/barsch","followers_url":"https://api.github.com/users/barsch/followers","following_url":"https://api.github.com/users/barsch/following{/other_user}","gists_url":"https://api.github.com/users/barsch/gists{/gist_id}","starred_url":"https://api.github.com/users/barsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barsch/subscriptions","organizations_url":"https://api.github.com/users/barsch/orgs","repos_url":"https://api.github.com/users/barsch/repos","events_url":"https://api.github.com/users/barsch/events{/privacy}","received_events_url":"https://api.github.com/users/barsch/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":7,"state":"open","created_at":"2014-07-18T08:42:03Z","updated_at":"2015-04-09T22:18:29Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2014-10-25T08:27:33Z","updated_at":"2015-04-12T00:39:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/902","html_url":"https://github.com/obspy/obspy/pull/902","diff_url":"https://github.com/obspy/obspy/pull/902.diff","patch_url":"https://github.com/obspy/obspy/pull/902.patch"},"body":"This is an experimental look at using [Cartopy](http://scitools.org.uk/cartopy/) instead of Basemap. Cartopy provides a more object oriented interface that integrates more seamlessly in matplotlib. For example, the projection is just a subclass of the regular Axes so you can do away with the transform yourself, plus the caller easily has access to the projection without having to create a new object.\r\n\r\nThis is certainly not ready for merging for a few reasons. ~~It completely replaces the existing function, so there's no fallback to Basemap, and I don't think it totally takes advantage of everything Cartopy provides. also, Cartopy doesn't yet support Python 3 (SciTools/cartopy#499).~~\r\n\r\nThe results are pretty close (where things work):\r\n * Default event plot: ![catalog-cartopy1](https://cloud.githubusercontent.com/assets/302469/6679050/25cee302-cc19-11e4-8c47-4286eda484f7.png) <br>\r\n    is roughly the same, though I didn't add lakes or rivers. Detail is pretty close otherwise (small grid line style differences, less detail in the Arctic, and more detail in Antartica) but events are plotted in the same place.\r\n * Orthographic event plot: ![catalog-cartopy2](https://cloud.githubusercontent.com/assets/302469/6679059/33886e96-cc19-11e4-8a98-1138c194ab4e.png) <br>\r\n    is generally the same (though there's a small shift and the top of the longitude grid lines is different). (BTW, the ocean colour in this plot is uggly.)\r\n * Local plot: ![catalog-cartopy3](https://cloud.githubusercontent.com/assets/302469/6679066/3b7908d6-cc19-11e4-95c7-5d68bbeaceba.png) <br>\r\n    ~~Cartopy doesn't appear to have this projection right now, so it's a bit worse off, unfortunately. It also doesn't seem to support the grid labels on the outside.~~\r\n"},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/91954719","html_url":"https://github.com/obspy/obspy/pull/902#issuecomment-91954719","issue_url":"https://api.github.com/repos/obspy/obspy/issues/902","id":91954719,"user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T00:39:30Z","updated_at":"2015-04-12T00:39:30Z","body":"Besides the grid labels, I think this is pretty much done. Obviously, there are still issues with Cartopy at some rotations, but I don't think that should hold up merging. The 0.11.0 release won't be for a while, anyway."}}