I want to plot the function A(x,y) = 28x + 28y - 2x^2 - 2y^2 - 2xy. To do this I made the following python script:
import mayavi.mlab as mlab import numpy as np def A(x,y): return 28*x + 28*y - 2*x**2 - 2*y**2 - 2*x*y x, y = np.mgrid[0:14:100j,0:14:100j] mlab.surf(x,y,A) mlab.axes(nb_labels=6) mlab.outline() mlab.show() Since the x and y axis ranges from 0 to 14, and the z-axis from -392 to 131 it is hard to see the plot, and to remedy this I added the warp_scale='auto' keyword argument to the surf() call: mlab.surf(x,y,A,warp_scale='auto') But now the labeling along the x,y and z-axis is wrong; i.e. the labels seem to also have been scaled. With warp_scale='auto' the labels in x and y direction range from 0 to 99 instead of the correct 0 to 14. Is there a way to have the labels show the original x, y and z values? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users