On Tue, Apr 6, 2010 at 1:16 PM, Alex S <schmitt.happens@...> 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')
Graduate Research Assistant
School of Meteorology
University of Oklahoma