On 6/15/06, Stefan van der Walt <[EMAIL PROTECTED]> wrote: > I often want to plot matrices, with the axes labeled according to the > matrix index. I.e. the top-lefthand element should be (0,0) and the > bottom-righthand element (rows,columns). Setting the extent does > work, i.e. > > ax.imshow(im,extent=(1,columns,rows,1)) > > If others also use this frequently, it may be useful to have a quick > way of doing it (or maybe, there already is, and I've missed it).
See matshow(), by yours truly :) One of my few direct contributions to mpl. There may be a better way to do what it does with today's mpl, but it works for me (all the figures from the SANUM talk were done with it). Cheers, f _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users