Plot sphere with Julia and PyPlot
<p>Recently I tried to plot a sphere using PyPlot/Julia and unfortunately it was harder than I thought.
Probably there's something wrong with points generation, but I can't figure out why my implementation didn't work. Although everything is fine with original python code.</p>

<p>I've tried to adapt <a href="http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#surface-plots" rel="noreferrer">demo2</a> from matplotlib surface plot doc as MWE:</p>

<pre><code>using PyPlot
u = linspace(0,2*π,100);
v = linspace(0,π,100);

x = cos(u).*sin(v);
y = sin(u).*sin(v);
z = cos(v);

surf(x,y,z)
</code></pre>

<p>And I'm getting <a href="https://i.stack.imgur.com/XkhW4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XkhW4.png" alt="this"></a> instead of <a href="https://i.stack.imgur.com/WXWbj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WXWbj.png" alt="the right one."></a></p>

<p>So, what's exactly wrong in my Julia implementation?</p>