On Wed, 23 May 2007, Trevis Crane wrote: > 2) How do I format how tick mark labels are displayed? I have a plot > whose x-axis runs from 0 to 8.5e-5. But the tick mark labels are > 0,0.00001,0.00002,0.00003... This is rather unsightly, but I haven't > found a way to specify the format of these numbers.
Look into the arguments of the xticks function. I do things like tickvals = arange(5.998,6.0025,0.0005); ticklabs = map(lambda val:"%.4f"%val, tickvals); ticklabs[0::2] = map(lambda val:"%.3f"%val, tickvals[0::2]); xticks(tickvals,ticklabs); to customize. JTW ------------------------------------------------------------------------- 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