{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1240","repository_url":"https://api.github.com/repos/obspy/obspy","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1240/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1240/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1240/events","html_url":"https://github.com/obspy/obspy/pull/1240","id":132431832,"number":1240,"title":"Refactor basemap plots to be able to plot into an Axes instance","user":{"login":"megies","id":1842780,"avatar_url":"https://avatars.githubusercontent.com/u/1842780?v=3","gravatar_id":"","url":"https://api.github.com/users/megies","html_url":"https://github.com/megies","followers_url":"https://api.github.com/users/megies/followers","following_url":"https://api.github.com/users/megies/following{/other_user}","gists_url":"https://api.github.com/users/megies/gists{/gist_id}","starred_url":"https://api.github.com/users/megies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megies/subscriptions","organizations_url":"https://api.github.com/users/megies/orgs","repos_url":"https://api.github.com/users/megies/repos","events_url":"https://api.github.com/users/megies/events{/privacy}","received_events_url":"https://api.github.com/users/megies/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/obspy/obspy/labels/.core","name":".core","color":"0b02e1"},{"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":null,"milestone":null,"comments":4,"created_at":"2016-02-09T14:23:29Z","updated_at":"2016-02-10T18:47:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/obspy/obspy/pulls/1240","html_url":"https://github.com/obspy/obspy/pull/1240","diff_url":"https://github.com/obspy/obspy/pull/1240.diff","patch_url":"https://github.com/obspy/obspy/pull/1240.patch"},"body":"Mainly to be able to add a location plot to Event plots currently being set up in #1192.\r\nThis makes e.g. the following possible now:\r\n```python\r\nfrom obspy import read_events\r\nimport matplotlib.pyplot as plt\r\n\r\ncat = read_events()\r\n\r\nfig = plt.figure(figsize=(14, 7))\r\n\r\nax = fig.add_subplot(121)\r\ncat.plot(projection=\"ortho\", fig=ax, colorbar=True, show=False)\r\n\r\nax = fig.add_subplot(222)\r\ncat.plot(projection=\"global\", fig=ax, title=\"\", colorbar=False, show=False)\r\n\r\nax = fig.add_subplot(224)\r\ncat.plot(projection=\"local\", fig=ax, title=\"\", colorbar=False, show=True)\r\n```\r\n![bmap](https://cloud.githubusercontent.com/assets/1842780/12918757/f4190c3a-cf40-11e5-971e-fd54758a75f1.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/182526594","html_url":"https://github.com/obspy/obspy/pull/1240#issuecomment-182526594","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1240","id":182526594,"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":"2016-02-10T18:47:57Z","updated_at":"2016-02-10T18:47:57Z","body":"No, it is better for libraries to be explicit rather then depending on Matplotlib's interactive API."}}