From: Jouni K S. <jk...@ik...> - 2006-10-10 07:06:45
|
"Derek Hohls" <DH...@cs...> writes: > ie. 0.2 0.4 0.6... followed by a rather large and ugly-looking > x1e+4 > Is there is a simple way to avoid exponential notation? Try using a FormatStrFormatter with a suitable format string: from matplotlib.ticker import FormatStrFormatter ax=gca() ax.xaxis.set_major_formatter(FormatStrFormatter('%5.0f')) For more information, see http://matplotlib.sourceforge.net/matplotlib.ticker.html and grep for Formatter in the examples directory. -- Jouni |