It seems there's some order dependence here. I have changed the Axes constructor so the scale is set before the labels, and this seems to resolve this bug.
Fixed in SVN r7016 Mike Matthias Michler wrote: > Hello list, > > in the small example below with xscale and yscale logarithmic I'm not able to > set the xlabel inside the axes initialisation. The error output is attached. > It doesn't happen if I use the pylab command 'xlabel' or set one of the > scalings to linear. > > Is this a bug or do I miss anything? > > Thanks in advance for any hints. > > regards Matthias > > >> ------------------------------------------------- >> > import matplotlib.pyplot as plt > > ax = plt.subplot(111, autoscale_on=False, > xscale="log", yscale="log", > xlim=(1, 10**4), ylim=(10**-4, 1), > xlabel="logx", > ) > #plt.xlabel('logx') > plt.show() > >> ------------------------------------------------------- >> >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA >> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >> -Strategies to boost innovation and cut costs with open source participation >> -Receive a $600 discount off the registration fee with the source code: SFAD >> http://p.sf.net/sfu/XcvMzF8H >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users