{"action":"created","issue":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/111","repository_url":"https://api.github.com/repos/tbreloff/Plots.jl","labels_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/111/comments","events_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/111/events","html_url":"https://github.com/tbreloff/Plots.jl/issues/111","id":125896465,"number":111,"title":"Animation interface","user":{"login":"gdkrmr","id":12512930,"avatar_url":"https://avatars.githubusercontent.com/u/12512930?v=3","gravatar_id":"","url":"https://api.github.com/users/gdkrmr","html_url":"https://github.com/gdkrmr","followers_url":"https://api.github.com/users/gdkrmr/followers","following_url":"https://api.github.com/users/gdkrmr/following{/other_user}","gists_url":"https://api.github.com/users/gdkrmr/gists{/gist_id}","starred_url":"https://api.github.com/users/gdkrmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdkrmr/subscriptions","organizations_url":"https://api.github.com/users/gdkrmr/orgs","repos_url":"https://api.github.com/users/gdkrmr/repos","events_url":"https://api.github.com/users/gdkrmr/events{/privacy}","received_events_url":"https://api.github.com/users/gdkrmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-01-11T08:42:54Z","updated_at":"2016-02-17T09:40:57Z","closed_at":null,"body":"There is an issue with the current animation interface:\r\n1. `using Plots; anim = Animation()` gives an error, shouldn't this initialize an empty animation object?\r\n2.  Something like this does not work:\r\n```julia\r\nplot()\r\nanim = Animation()\r\nfor i in 1:0.1:π\r\n    plot([sin,cos], 0, π)\r\n    scatter!([i,i],[sin])\r\n    frame(anim)\r\nend\r\ngif(anim)\r\n```\r\nAn ugly workaround would be this:\r\n```julia\r\nplot()\r\nanim = Animation()\r\nfor i in 0:0.1:π\r\n    plot([sin,cos], 0, π)\r\n    scatter!([i],[sin])\r\n    scatter!([i],[cos])\r\n    anim = Animation(current(),anim.dir,anim.frames)\r\n    frame(anim)\r\nend\r\ngif(anim)\r\n```\r\nHere is what my intuition would expect: `Animation` should be mutable, so that `anim.plt` can be changed and `frame()` should always  set `anim.plt` to `current()`."},"comment":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/comments/185119598","html_url":"https://github.com/tbreloff/Plots.jl/issues/111#issuecomment-185119598","issue_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/111","id":185119598,"user":{"login":"Evizero","id":10854026,"avatar_url":"https://avatars.githubusercontent.com/u/10854026?v=3","gravatar_id":"","url":"https://api.github.com/users/Evizero","html_url":"https://github.com/Evizero","followers_url":"https://api.github.com/users/Evizero/followers","following_url":"https://api.github.com/users/Evizero/following{/other_user}","gists_url":"https://api.github.com/users/Evizero/gists{/gist_id}","starred_url":"https://api.github.com/users/Evizero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evizero/subscriptions","organizations_url":"https://api.github.com/users/Evizero/orgs","repos_url":"https://api.github.com/users/Evizero/repos","events_url":"https://api.github.com/users/Evizero/events{/privacy}","received_events_url":"https://api.github.com/users/Evizero/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T09:40:57Z","updated_at":"2016-02-17T09:40:57Z","body":"Looks awesome. I will play with this"}}