{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/12","repository_url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl","labels_url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/12/comments","events_url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/12/events","html_url":"https://github.com/JuliaDiffEq/DiffEqTutorials.jl/issues/12","id":265152027,"number":12,"title":"problem with animation","user":{"login":"francispoulin","id":8239041,"avatar_url":"https://avatars3.githubusercontent.com/u/8239041?v=4","gravatar_id":"","url":"https://api.github.com/users/francispoulin","html_url":"https://github.com/francispoulin","followers_url":"https://api.github.com/users/francispoulin/followers","following_url":"https://api.github.com/users/francispoulin/following{/other_user}","gists_url":"https://api.github.com/users/francispoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/francispoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francispoulin/subscriptions","organizations_url":"https://api.github.com/users/francispoulin/orgs","repos_url":"https://api.github.com/users/francispoulin/repos","events_url":"https://api.github.com/users/francispoulin/events{/privacy}","received_events_url":"https://api.github.com/users/francispoulin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2017-10-13T02:39:57Z","updated_at":"2017-10-21T15:24:55Z","closed_at":null,"author_association":"NONE","body":"Sorry for bothering you with this but I am trying to put together a notebook that animates the solution to the diffusion equation.  The code below works well for plotting slices but the animation seems to go on and on and never make an animation.\r\n\r\nAny suggestions as to what I'm doing wrong?\r\n\r\nNeedless to say, I am happy to share the notebook in case anyone might find it helpful.\r\n\r\n```\r\n# Import packages\r\nusing DiffEqOperators, DifferentialEquations, Plots\r\n\r\nx = collect(-pi : 2pi/511 : pi);\r\nu0 = -(x - 0.5).^2 + 1/12;\r\nA = DerivativeOperator{Float64}(2,2,2pi/511,512,:Dirichlet,:Dirichlet;BC=(u0[1],u0[end]));\r\n\r\nprob1 = ODEProblem(A, u0, (0.,10.));\r\nsol1 = solve(prob1, dense=false, tstops=0:0.01:0.1);\r\n    \r\n# try to plot the solution at different time points using\r\nplot(x, [sol1(i) for i in 0:1:10])\r\n\r\nanimate(sol1,\"tmp.gif\")\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/comments/338410066","html_url":"https://github.com/JuliaDiffEq/DiffEqTutorials.jl/issues/12#issuecomment-338410066","issue_url":"https://api.github.com/repos/JuliaDiffEq/DiffEqTutorials.jl/issues/12","id":338410066,"user":{"login":"francispoulin","id":8239041,"avatar_url":"https://avatars3.githubusercontent.com/u/8239041?v=4","gravatar_id":"","url":"https://api.github.com/users/francispoulin","html_url":"https://github.com/francispoulin","followers_url":"https://api.github.com/users/francispoulin/followers","following_url":"https://api.github.com/users/francispoulin/following{/other_user}","gists_url":"https://api.github.com/users/francispoulin/gists{/gist_id}","starred_url":"https://api.github.com/users/francispoulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francispoulin/subscriptions","organizations_url":"https://api.github.com/users/francispoulin/orgs","repos_url":"https://api.github.com/users/francispoulin/repos","events_url":"https://api.github.com/users/francispoulin/events{/privacy}","received_events_url":"https://api.github.com/users/francispoulin/received_events","type":"User","site_admin":false},"created_at":"2017-10-21T15:24:55Z","updated_at":"2017-10-21T15:24:55Z","author_association":"NONE","body":"Thanks for catching that.  Ideally I want to use both the FE and FEM methods but I thought I would start with FE, since it is presumably easier.  \r\n\r\nI tried what you suggested and I agree that we see arrays, which I presume are the correct ones.  I did the most naive thing I can imagine and that did not work.  \r\n\r\nNo rush to get to this as I imagine the fix will be pretty easy.\r\n\r\nThanks again.\r\n```\r\nfor i in sol1\r\n    plot(x, i)\r\n  #display(i)\r\nend\r\n```"}}
{"actor":{"display_login":"francispoulin"}}