As I present here (in 2D), I\'m wondering if how I could \"scale\" an image input to be plotted to a range in the plot. To be more clear, this is what I need:
I have a 4
Try this insted:
fig = plt.figure() ax = fig.gca(projection='3d') row = np.linspace(-1, 1, 400) X,Y = np.meshgrid(row,row) CS = ax.contour(X, Y, im, cmap=cm.coolwarm) plt.clabel(CS, inline=1, fontsize=10) plt.savefig("ContourLevel3D.png")