On Wed, May 13, 2009 at 1:39 PM, Gökhan SEVER <gokhanse...@gmail.com> wrote: > Hello, > > Is there a way to change the resolution of x and y readings (while hovering > the mouse inside the canvas area) from the status bar of a plot window? > > Currently x show 2 or 3 digits after 0, while y only increments at 0.1 or 1 > depends on the number. > > Can we set these based on our needs?
There are attributes ax.fmt_xdata and ax.fmt_ydata. These are None by default, in which case the axis tick formatter is used. Write the function you want to format the data, and set the attr to override the default def myformat(x): return '%1.4f'%x ax.fmt_xdata = myformat JDH ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users