{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/2324","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/2324/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/2324/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/2324/events","html_url":"https://github.com/matplotlib/matplotlib/issues/2324","id":18389529,"number":2324,"title":"Axes cannot be animated using animation.py with blit","user":{"login":"hammer498","id":2175399,"avatar_url":"https://avatars.githubusercontent.com/u/2175399?v=3","gravatar_id":"","url":"https://api.github.com/users/hammer498","html_url":"https://github.com/hammer498","followers_url":"https://api.github.com/users/hammer498/followers","following_url":"https://api.github.com/users/hammer498/following{/other_user}","gists_url":"https://api.github.com/users/hammer498/gists{/gist_id}","starred_url":"https://api.github.com/users/hammer498/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hammer498/subscriptions","organizations_url":"https://api.github.com/users/hammer498/orgs","repos_url":"https://api.github.com/users/hammer498/repos","events_url":"https://api.github.com/users/hammer498/events{/privacy}","received_events_url":"https://api.github.com/users/hammer498/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/Animation","name":"Animation","color":"006b75"},{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/wishlist","name":"wishlist","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15","html_url":"https://github.com/matplotlib/matplotlib/milestones/unassigned","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/15/labels","id":719140,"number":15,"title":"unassigned","description":null,"creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":89,"closed_issues":56,"state":"open","created_at":"2014-07-12T20:04:20Z","updated_at":"2015-08-30T22:56:42Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2013-08-22T00:59:22Z","updated_at":"2015-09-02T21:28:35Z","closed_at":null,"body":"When using animation.py with blit updates to axes are not drawn correctly.  Tick marks update but labels do not as explained by this SO answer.\r\n\r\nhttp://stackoverflow.com/a/10704274/852487\r\n\r\nAccording to the answer, to fix this problem it seems line 792 in animation.py \r\n\r\nbg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.bbox)\r\n\r\nneeds to be changed to\r\n\r\nbg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.get_figure().bbox)\r\nor perhaps\r\nbg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.clipbox)?\r\n\r\nand line 798\r\n\r\nax.figure.canvas.blit(ax.bbox)\r\n\r\nchanged to \r\n\r\nax.figure.canvas.blit(ax.clipbox)"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/137249703","html_url":"https://github.com/matplotlib/matplotlib/issues/2324#issuecomment-137249703","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/2324","id":137249703,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T21:28:35Z","updated_at":"2015-09-02T21:28:35Z","body":"This relies on the artists having been drawn at least once.  artist that are going to be blitted need to have the `animated` flag set to true on master now (which is ensured as part of the animation code) and are skipped in the normal drawing call."}}