{"action":"created","issue":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/1423","labels_url":"https://api.github.com/repos/sunpy/sunpy/issues/1423/labels{/name}","comments_url":"https://api.github.com/repos/sunpy/sunpy/issues/1423/comments","events_url":"https://api.github.com/repos/sunpy/sunpy/issues/1423/events","html_url":"https://github.com/sunpy/sunpy/pull/1423","id":81521181,"number":1423,"title":"Add plot_function argument to MapCubeAnimator","user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sunpy/sunpy/labels/[Review]","name":"[Review]","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sunpy/sunpy/milestones/15","html_url":"https://github.com/sunpy/sunpy/milestones/0.6","labels_url":"https://api.github.com/repos/sunpy/sunpy/milestones/15/labels","id":1034473,"number":15,"title":"0.6","description":"","creator":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":37,"state":"open","created_at":"2015-03-23T16:50:40Z","updated_at":"2015-06-01T16:20:09Z","due_on":"2015-04-16T23:00:00Z","closed_at":null},"comments":5,"created_at":"2015-05-27T16:34:50Z","updated_at":"2015-06-01T16:46:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sunpy/sunpy/pulls/1423","html_url":"https://github.com/sunpy/sunpy/pull/1423","diff_url":"https://github.com/sunpy/sunpy/pull/1423.diff","patch_url":"https://github.com/sunpy/sunpy/pull/1423.patch"},"body":"This allows the user to pass a custom plotting function to MapCubeAnimator which will be called for each animation step. It allows the following:\r\n\r\n```python\r\nmapc = sunpy.map.Map('/home/stuart/sunpy/data/aia_lev1_*fits', cube=True)\r\ndef my_plot(fig, ax, map):\r\n    l = map.draw_grid()\r\n    return l\r\nmapc.peek(plot_function=my_plot)\r\n```\r\n\r\nAssociated with this change, is something that I have wanted to do for a while but not had need to, it makes `draw_grid` and `draw_limb` return sensible things, `draw_grid` now returns in a consistent way with `pyplot.plot()` and `draw_limb` returns the patch object.\r\n\r\nThis sprung out of #1412 "},"comment":{"url":"https://api.github.com/repos/sunpy/sunpy/issues/comments/107632722","html_url":"https://github.com/sunpy/sunpy/pull/1423#issuecomment-107632722","issue_url":"https://api.github.com/repos/sunpy/sunpy/issues/1423","id":107632722,"user":{"login":"Cadair","id":1391051,"avatar_url":"https://avatars.githubusercontent.com/u/1391051?v=3","gravatar_id":"","url":"https://api.github.com/users/Cadair","html_url":"https://github.com/Cadair","followers_url":"https://api.github.com/users/Cadair/followers","following_url":"https://api.github.com/users/Cadair/following{/other_user}","gists_url":"https://api.github.com/users/Cadair/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadair/subscriptions","organizations_url":"https://api.github.com/users/Cadair/orgs","repos_url":"https://api.github.com/users/Cadair/repos","events_url":"https://api.github.com/users/Cadair/events{/privacy}","received_events_url":"https://api.github.com/users/Cadair/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T16:46:48Z","updated_at":"2015-06-01T16:46:48Z","body":"no....?"}}