I have a file myfile.mat exported from octave, it contains three matrices X, Y, U all of them have same size and I want to plot surface U where X, Y are the x and y components of surface U. I can do it in octave with the following code:
surf(X,Y,U)
But I want to do it in python also. I am using pythonxy and for plotting the data in python first of all I import the data with spyder GUI interactively after I saw the matrices in variable explorer in spyder I implement the following codes
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.plot_surface(X, Y, U, rstride=8, cstride=8, alpha=0.3)
But I see just a blank figure window. Here is the data myfile.mat
