Axes other than pixels with imshow

Hello,
Is it possible to label the axes of an imshow plot with something other than pixel number? I want to use imshow for speed, but also would like to be able to put arbitrary X and Y axes vectors on, as in pcolor(x,y,z)

Thanks,
Glenn

G Jones wrote:

Hello,
Is it possible to label the axes of an imshow plot with something other than pixel number? I want to use imshow for speed, but also would like to be able to put arbitrary X and Y axes vectors on, as in pcolor(x,y,z)
Thanks,
Glenn

Using the extent kwarg, you can apply any linear scale to the imshow axes. An alternative is to use the Axes.pcolorfast method, which uses the imshow code (but without interpolation) if the grid is regular, and slower codes, but still much faster than pcolor, if the grid is irregular, or not rectangular.

Eric

ยทยทยท

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users