Python Matplotlib 3d projection rendering issue -
i plotting surface , wireframe using 3d projection in matplotlib. surface of raw data , wireframe of surfaced resampled
import matplotlib.pyplot plt mpl_toolkits.mplot3d import axes3d fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.plot_surface(x, y, array, cmap='viridis', alpha=0.5,linewidth=0) ax.plot_wireframe(newx, newy, newarray,linewidth=1,color='black') ax.set_xlabel('z') ax.set_ylabel('x') ax.set_zlabel(ztitle) plt.show() what figure, neither surface or wireframe seem plot correctly
do see vertical 'spikes'? don't believe in data, rather rendering issue matplotlib. believe surface should smooth right ends of 'spikes'. seen here, copied array excel , plotted surface:
has else experienced issues matplotlib? there fix?
i'm trying produced figures of data report , need them accurate.
i'm using python 3.5 in windows 10 environment spyder 3.2.0 ide. matplotlib version 2.0.2
many thanks

Comments
Post a Comment