Diego Avesani
2015-02-16 14:45:47 UTC
Dear all,
I have two problems.
1) I would like to plot a 3D surface, but without lines.
2) I would like to plot the surface on a circular domain.
I mean, this is a piece of my code
X = np.arange(0, 1, 0.05)
Y = np.arange(0, 1, 0.05)
X, Y = np.meshgrid(X, Y)
R = np.sqrt(X**2 + Y**2)
Z = np.sin(R)
ax.plot_surface(X, Y, Z, rstride=10, cstride=10, alpha=0.3)
The domain is therefore a square, I would like to have a circular domain.
Thanks a lot
Diego
I have two problems.
1) I would like to plot a 3D surface, but without lines.
2) I would like to plot the surface on a circular domain.
I mean, this is a piece of my code
X = np.arange(0, 1, 0.05)
Y = np.arange(0, 1, 0.05)
X, Y = np.meshgrid(X, Y)
R = np.sqrt(X**2 + Y**2)
Z = np.sin(R)
ax.plot_surface(X, Y, Z, rstride=10, cstride=10, alpha=0.3)
The domain is therefore a square, I would like to have a circular domain.
Thanks a lot
Diego