Smooth surface Plot with Pyplot
<p>My question is almost similar to this on:
<a href="https://stackoverflow.com/questions/20848740/smoothing-surface-plot-from-matrix">smoothing surface plot from matrix</a></p>

<p>only that my toolset is matplotlib and numpy (so far).</p>

<p>I have sucessfully generated a X, Y and Z-grid to plot
with</p>

<pre><code>fig = plt.figure(figsize=(12,12))
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(X, Y, Z, cmap='summer', rstride=1, cstride=1, alpa=None)
</code></pre>

<p>However, as the values are quite jumpy, it looks terribly.
<a href="https://i.stack.imgur.com/vzTKp.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vzTKp.jpg" alt="Exampleplot - terribly edgy, ugly... not usable and stuff"></a></p>

<p>I'd like to smoothen things up, make at least the vertices connected, or look like that. </p>

<p>My data is generated like that:
I have a function</p>

<pre><code>svOfMatrix(x, y)
</code></pre>

<p>which produces a matrix in dependence on x, calculates its y-th power, selects a subset of columns and rows, and calculates the maximum singular value.
So, Z[x,y] is svOfMatrix(x, y)</p>

<p>As this calculation is quite expensive, I don't want to make the steps for x too small, and Y is bound to be integer <br>
Further, even for very small steps, there might be quite some changes, I don't want see. So I'd like to interpolate it somehow.
I found
<a href="http://docs.scipy.org/doc/scipy-0.14.0/reference/tutorial/interpolate.html" rel="noreferrer">http://docs.scipy.org/doc/scipy-0.14.0/reference/tutorial/interpolate.html</a>
but I don't get it to work.</p>