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:

contourf matplotlib


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -