# Plotting from within a loop using GR?

**URL:** <https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [June 24, 2017, 12:39am UTC](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435 "2017-06-24T00:39:48Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [June 27, 2017, 2:06pm UTC](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435/7 "2017-06-27T14:06:57Z")

</div>

maybe this discussion helps:

> [@On-the-fly Animation in IJulia Notebooks](https://discourse.julialang.org/t/on-the-fly-animation-in-ijulia-notebooks/524):
>
> I recently revisited how to do on-the-fly visualisation in an IJulia notebook, i.e., plotting results while the computation is still running. This was discussed a while back in [Google groups link](https://groups.google.com/forum/#!searchin/julia-users/Interactive%2420Animated%2420PyPlot%2420in%2420IJulia%7Csort:relevance/julia-users/Wb5hgyj2PMY/jtFVMvR01x0J) I’ve tried the same scheme with Plots.jl with Plotly backend, and I am thrilled that this still works. (Julia 0.5.1pre). Below is the code for anybody interested. But my key issue back then and still now is: why does it need to be so complicated? I.e. why can I not simply write x = linspace(0, 2\*pi, …

---

_[View the full topic](https://discourse.julialang.org/t/plotting-from-within-a-loop-using-gr/4435)._
