python - Strange overlap bug using matplotlib's plot_trisurf -


i have got trisurf plot using matplotlib in python script. outside surface z array contains nan.

    min= np.nanmin(z)     max= np.nanmax(z)     fig = plt.figure(figsize=(16, 16))     yax = fig.add_subplot(1,1,1, projection='3d')     yax.set_xlabel(...)     yax.set_ylabel(...)      yax.set_zlabel(...)          ysurf = yax.plot_trisurf(x, y, z, vmin=min, vmax=max, linewidth=0.1, cmap=plt.cm.jet, alpha=0.5, antialiased=true)     yax.set_zlim([min, max])     fig.tight_layout() 

i discovered bug overlapping of surface: strange overlapping

enter image description here

when rotate 3d-plot surface seems displayed correctly: rotated

enter image description here

i can't figure out, wrong here? i'm using matplotlib 1.5.1.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -