title: real time plotting with Julia
body: <p>I am trying to plot a function evolving in real time with Julia. </p>
  
  <p>For that, I saw that GR package could be used in Julia, when I try to apply exactly the example given <a href="https://pgi-jcns.fz-juelich.de/pub/doc/anim.html" rel="nofollow noreferrer">here</a> : </p>
  
  <pre><code>import GR
  GR.inline("mov")
  x = [0:0.01:2*pi]
  
      for i = 1:200
      GR.plot(x, sin.(x + i / 10.0))
      end
  
  GR.show()
  </code></pre>
  
  <p>I get the following error message while executing the loop part : </p>
  
  <p><em>expected Real or Complex</em></p>
  
  <p><em>in #plot_args#12(::Symbol, ::Function, ::Tuple{Array{FloatRange{Float64},1},Array{Array{Float64,1},1}}) at /Users/myname/.julia/v0.5/GR/src/jlgr.jl:936 ....</em> </p>
  
  <p>I have looked a bit on internet and found <a href="https://phabricator.kde.org/D2457?id=6099" rel="nofollow noreferrer">this</a> where someone seems to have a similar problem but I really dont understand the answers and what should I do to make it work.</p>
  
  <p>I can also just find an other way to plot in real time (within a loop). </p>
  
  <p>Can someone help with that please? </p>
  
  <p>Thank you by advance </p>