I want to visualize the result of some calculations. Here is part of my code:
Expand|Select|Wrap|Line Numbers
- fig = plt.figure(figsize=(10, 10))
- ax = fig.add_subplot(111, projection='3d')
- Lx = np.linspace(0, h_x*(N/2-1)+x_size, int(1.5*N))
- Ly = np.linspace(0, h_y*(N/2-1)+y_size, int(1.5*N))
- X, Y = np.meshgrid(Lx, Ly)
- surf = ax.plot_surface(X, Y, W, cmap=mpl.cm.hsv)
- fig.colorbar(surf, shrink=0.75, aspect=15)
- plt.show()
And one more question. In the old version of the program there was such string: ax.plot(x, y, z, linewidth=5, color='k', ls='solid') (x, y, z - coordinates of the tops of the rectangle). So I had black rectangle on my images. And nowadays instead the rectangle I have a lot of small dots. It is very strange, because I don't change anything in the old code.