On Tue, 24 Apr 2007, Tommy Grav wrote: > I have a plot where the x axis ticks are given as
> 0.1 0.15 0.20 0.025 0.30 0.35 > with +3.732e2 given in the lower right of the axis. > How can I force the ticks to have > 373.3 373.35 .... If all else fails, you can set the tick labels by hand. For example, I did this when trying to get tick labels of 0.002, 0.0025, 0.003, etc.: tickvals = arange(0.002,0.007,0.0005); ticklabs = map(lambda val:"%.4f"%val, tickvals); ticklabs[0:9:2] = map(lambda val:"%.3f"%val, tickvals[0:9:2]); xticks(tickvals,ticklabs); -- ====================================================================== Office: 0.17 (Golm) Dr. John T. Whelan Phone: +49 331 567 7117 MPI for Gravitational Physics FAX: +49 331 567 7298 (Albert-Einstein Institute) http://www.aei.mpg.de/~whelan/ D-14424 Potsdam [EMAIL PROTECTED] [EMAIL PROTECTED] ====================================================================== ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users