title: How to plot a vector field in Julia?
body: <p>I want to plot a vector field in Julia. I could not find an example <a href="http://docs.juliaplots.org/latest/examples/pyplot/" rel="noreferrer">here</a>.
  <a href="https://gist.github.com/gizmaa/7214002#streamplot" rel="noreferrer">Here</a> there are some examples using <code>plotly</code>, however, they do not work for me. I would like to plot the vector field by <code>plotlyjs</code> or <code>plotly</code>.</p>
  
  <p>Here is an example code in Julia:</p>
  
  <pre><code>using Plots
  pyplot()
  x = collect(linspace(0,10,100));
  X = repmat(x,1,length(x));
  Y = repmat(x',length(x),1);
  U = cos.(X.*Y);
  V = sin.(X.*Y);
  streamplot(X,Y,U,V)
  </code></pre>
  
  <p>Here is the Matlab example:</p>
  
  <pre><code>[x,y] = meshgrid(0:0.2:2,0:0.2:2);
  u = cos(x).*y;
  v = sin(x).*y;
  
  figure
  quiver(x,y,u,v)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lfaUC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lfaUC.png" alt="enter image description here"></a></p>