On Tue, Apr 6, 2010 at 1:16 PM, Alex S <schmitt.happ...@gmail.com> wrote: > I've got a program that generates a bunch of plots with logarithmic charts. > Matplotlib handles them great, but it seems to by default label the y axis > ticks 10^0, 10^1, 10^2 etc. Is there an way to make it spell out these > numbers instead (ie 1, 10, 100 etc)? I guess I could make custom ticks for > every one, but the graph is not always the same and if it could do it > automatically it would be much better.
Make a custom tick formatter: form = plt.FormatStrFormatter('%d') plt.gca().yaxis.set_major_formatter(form) Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users