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
when rotate 3d-plot surface seems displayed correctly: rotated
i can't figure out, wrong here? i'm using matplotlib 1.5.1.
Comments
Post a Comment