From: Yagua R. <yag...@gm...> - 2010-01-14 21:11:58
|
2010/1/14 Andrew Straw <str...@as...>: > Yagua Rovi wrote: >> I use matplotlib since two days only. I have done some things pretty >> good but I am now in front of a problem an I didn't found a solution >> in the documentation. >> >> I would like to draw the surface defined by the lists X, Y and the matrix Z. >> I get to a nice graphical output with the following code. >> My problem is that the labels on the axes indicate values >> corresponding to the indices in Tables X and Y or something like that. >> I would like to see the values between xmin and xmax, ymin and ymax. >> If I uncomment the lines set_xlim and set_ylim, the axes are properly >> represented, but the picture is shrinked into a corner. >> How to put the good values on the axes and correct the image full >> screen and correct scale ? >> > I think you want the extent kwarg to imshow. See > http://www.scipy.org/Plotting_Tutorial for one example. > Thanks a lot Andrew, that's good. |