title: Plotting with Julia multiple graphs in a loop or function
body: <p>I'm using Atom and Julia to plot a good number of graphs.
  I have a code like this:</p>
  
  <pre><code>function plotnetwork(A)
    for i=1:size(A,3)
      p,t=findn(A[:,:,i]
      graphplot(p,t)
    end
  return
  end
  </code></pre>
  
  <p>where graphplot is grom PlotRecipes: <a href="https://github.com/JuliaPlots/PlotRecipes.jl" rel="nofollow noreferrer">https://github.com/JuliaPlots/PlotRecipes.jl</a></p>
  
  <p>I have the following problems: using this code as a function doesn't plot anything (like if the plots where local variables) and even putting this loop in my main only outputs a single plot in a single window.</p>
  
  <p>What I desire is multiple windows with one plot each, I think the command push may be what I need but I didn't find much online.</p>