{"action":"opened","issue":{"url":"https://api.github.com/repos/pymc-devs/pymc3/issues/899","labels_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/899/labels{/name}","comments_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/899/comments","events_url":"https://api.github.com/repos/pymc-devs/pymc3/issues/899/events","html_url":"https://github.com/pymc-devs/pymc3/issues/899","id":123541484,"number":899,"title":"autocorrplot clobbers axes arg","user":{"login":"jonsedar","id":708325,"avatar_url":"https://avatars.githubusercontent.com/u/708325?v=3","gravatar_id":"","url":"https://api.github.com/users/jonsedar","html_url":"https://github.com/jonsedar","followers_url":"https://api.github.com/users/jonsedar/followers","following_url":"https://api.github.com/users/jonsedar/following{/other_user}","gists_url":"https://api.github.com/users/jonsedar/gists{/gist_id}","starred_url":"https://api.github.com/users/jonsedar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonsedar/subscriptions","organizations_url":"https://api.github.com/users/jonsedar/orgs","repos_url":"https://api.github.com/users/jonsedar/repos","events_url":"https://api.github.com/users/jonsedar/events{/privacy}","received_events_url":"https://api.github.com/users/jonsedar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T19:26:27Z","updated_at":"2015-12-22T19:26:27Z","closed_at":null,"body":"Minor issue in `plots.py`: function `autocorrplot()` doesn't actually use the `ax` axes argument, it simply creates new axes regardless:\r\n\r\n```\r\n196 |    fig, ax = plt.subplots(len(vars), chains, squeeze=False,\r\n197 |                    sharex=True, sharey=True)\r\n```\r\n\r\nThis is a pain, since a new fig and new axes get created regardless of the `ax` arg, preventing all sorts of integration into larger plotting frames and figure sizing etc.\r\n\r\nSuggest refactoring to check for presence of `ax` in args and handling the axes in a similar way to `traceplot`"}}