surf - matplotlib surface plot with hidden zaxis -
when change viewpoint of plot_surface in matplolib in (90,0), zaxis not clear, , it's useless in plot. want generate image same matlab below matlab surf view (0,90),with contour lines used matplotlib function imshow can generate matrix image, there no lines (similar in contourplot lines)in image. how can generate image plot_surface in python viewpoint of (90,0),bu without zaxis? matplotlib plot_surface,view(90,0),withou lines , zaxis
you can use contourf matplotlib:
import matplotlib.pyplot plt import numpy np x, y = np.meshgrid(range(100), range(100)) z = x**2+y**2 plt.contourf(x, y, z, [i in np.linspace(z.min(),z.max(),30)]) plt.show() , results in:

Comments
Post a Comment