axis not accepting keyword arguments any longer?

Hi, I am running some code which used to work a couple of months ago,
but now fails on the "axis" command which does not seem to accept
keyword arguments any longer (current version 0.87.7 from Fedora
Extras, previous version probably 0.87.4 or so). Traceback is
below...

Any ideas?

Thanks,
Marcel

/home/marcel/src/python/advection/paper1/colonius.py in colonius(Q, full)
     93 figure ()
     94 xlabel (r'$\xi$')
---> 95 axis (xmin=0, xmax=pi)
     96 plot (xxiplot, omega(xxiplot), "k-",
     97 xxiplot, dwdxi (xxiplot), "k--",

/usr/lib/python2.4/site-packages/matplotlib/pylab.py in axis(*v, **kwargs)
    622 """
    623 ax = gca()
--> 624 v = ax.axis(*v, **kwargs)
    625 draw_if_interactive()
    626 return v

/usr/lib/python2.4/site-packages/matplotlib/axes.py in axis(self, *v, **kwargs)
    775 except IndexError:
    776 xmin, xmax = self.set_xlim(**kwargs)
--> 777 ymin, ymax = self.set_ylim(**kwargs)
    778 return xmin, xmax, ymin, ymax
    779

TypeError: set_ylim() got an unexpected keyword argument 'xmin'
WARNING: Failure executing file: <colonius.py>

It is a bug. I don't know how or when it was introduced. I can fix it in svn later today.

Eric

Marcel Oliver wrote:

···

Hi, I am running some code which used to work a couple of months ago,
but now fails on the "axis" command which does not seem to accept
keyword arguments any longer (current version 0.87.7 from Fedora
Extras, previous version probably 0.87.4 or so). Traceback is
below...

Any ideas?

Thanks,
Marcel

/home/marcel/src/python/advection/paper1/colonius.py in colonius(Q, full)
     93 figure ()
     94 xlabel (r'$\xi$')
---> 95 axis (xmin=0, xmax=pi)
     96 plot (xxiplot, omega(xxiplot), "k-",
     97 xxiplot, dwdxi (xxiplot), "k--",

/usr/lib/python2.4/site-packages/matplotlib/pylab.py in axis(*v, **kwargs)
    622 """
    623 ax = gca()
--> 624 v = ax.axis(*v, **kwargs)
    625 draw_if_interactive()
    626 return v

/usr/lib/python2.4/site-packages/matplotlib/axes.py in axis(self, *v, **kwargs)
    775 except IndexError:
    776 xmin, xmax = self.set_xlim(**kwargs)
--> 777 ymin, ymax = self.set_ylim(**kwargs)
    778 return xmin, xmax, ymin, ymax
    779

TypeError: set_ylim() got an unexpected keyword argument 'xmin'
WARNING: Failure executing file: <colonius.py>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users