{"action":"created","issue":{"url":"https://api.github.com/repos/astroplanners/astroplan/issues/7","labels_url":"https://api.github.com/repos/astroplanners/astroplan/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/astroplanners/astroplan/issues/7/comments","events_url":"https://api.github.com/repos/astroplanners/astroplan/issues/7/events","html_url":"https://github.com/astroplanners/astroplan/pull/7","id":85644833,"number":7,"title":"Added plotting API strawman.","user":{"login":"jberlanga","id":11530948,"avatar_url":"https://avatars.githubusercontent.com/u/11530948?v=3","gravatar_id":"","url":"https://api.github.com/users/jberlanga","html_url":"https://github.com/jberlanga","followers_url":"https://api.github.com/users/jberlanga/followers","following_url":"https://api.github.com/users/jberlanga/following{/other_user}","gists_url":"https://api.github.com/users/jberlanga/gists{/gist_id}","starred_url":"https://api.github.com/users/jberlanga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jberlanga/subscriptions","organizations_url":"https://api.github.com/users/jberlanga/orgs","repos_url":"https://api.github.com/users/jberlanga/repos","events_url":"https://api.github.com/users/jberlanga/events{/privacy}","received_events_url":"https://api.github.com/users/jberlanga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-05T22:15:29Z","updated_at":"2015-06-11T11:33:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/astroplanners/astroplan/pulls/7","html_url":"https://github.com/astroplanners/astroplan/pull/7","diff_url":"https://github.com/astroplanners/astroplan/pull/7.diff","patch_url":"https://github.com/astroplanners/astroplan/pull/7.patch"},"body":"@eteq @adrn  I'll post code for doing the actual plotting in another PR."},"comment":{"url":"https://api.github.com/repos/astroplanners/astroplan/issues/comments/111092597","html_url":"https://github.com/astroplanners/astroplan/pull/7#issuecomment-111092597","issue_url":"https://api.github.com/repos/astroplanners/astroplan/issues/7","id":111092597,"user":{"login":"adrn","id":583379,"avatar_url":"https://avatars.githubusercontent.com/u/583379?v=3","gravatar_id":"","url":"https://api.github.com/users/adrn","html_url":"https://github.com/adrn","followers_url":"https://api.github.com/users/adrn/followers","following_url":"https://api.github.com/users/adrn/following{/other_user}","gists_url":"https://api.github.com/users/adrn/gists{/gist_id}","starred_url":"https://api.github.com/users/adrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrn/subscriptions","organizations_url":"https://api.github.com/users/adrn/orgs","repos_url":"https://api.github.com/users/adrn/repos","events_url":"https://api.github.com/users/adrn/events{/privacy}","received_events_url":"https://api.github.com/users/adrn/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T11:33:46Z","updated_at":"2015-06-11T11:33:46Z","body":"@cdeil for my own code (not saying this is right, but one example) I usually do 1), so, something like this:\r\n\r\n```python\r\ndef plot_stuff(..., ax=None, style_kwargs=dict()):\r\n    if axes is None:\r\n        fig,ax = plt.subplots()\r\n    # ...\r\n    ax.plot(xx, **style_kwargs)\r\n```"}}