On Mon, Oct 6, 2008 at 3:52 AM, Henry Proudhon <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I wonder if there is a simple way to apply a multiplication factor to > the ticks labels of an axis. > > say I'm plotting a 100 x 100 matrix with imshow and want the axis to > show (0 to 70) instead of (0 to 100), while still displaying the whole > matrix. In that case the coefficient would be 0.7. > > I had a look at the Formatter class but I cannot find a method to do > that, do I've to implement a custom formatter or I'm missing something > obvious here ?
Use the "extent" keyword argument to imshow to set the [xmin, xmax, ymin, ymax] extent of the image JDH ------------------------------------------------------------------------- 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