|
From: Marcel O. <m.o...@iu...> - 2007-01-09 22:41:26
|
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>
|
|
From: Eric F. <ef...@ha...> - 2007-01-09 22:51:31
|
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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: John H. <jdh...@ac...> - 2007-01-09 22:57:12
|
>>>>> "Marcel" == Marcel Oliver <m.o...@iu...> writes:
Marcel> TypeError: set_ylim() got an unexpected keyword argument
Marcel> 'xmin' WARNING: Failure executing file: <colonius.py>
This is a bug -- thanks for reporting it. I just committed changes to
svn to fix it.
JDH
|
|
From: Samuel M. S. <sm...@sa...> - 2007-01-25 00:47:19
|
I have the same problem On 09 Jan, 2007, at 15:55, John Hunter wrote: >>>>>> "Marcel" == Marcel Oliver <m.o...@iu...> writes: > > Marcel> TypeError: set_ylim() got an unexpected keyword argument > Marcel> 'xmin' WARNING: Failure executing file: <colonius.py> > > This is a bug -- thanks for reporting it. I just committed changes to > svn to fix it. > > JDH > > ---------------------------------------------------------------------- > --- > 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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84005-4108 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** |
|
From: John H. <jdh...@ac...> - 2007-01-25 14:24:02
|
>>>>> "Samuel" == Samuel M Smith <sm...@sa...> writes:
Samuel> I have the same problem
Did you notice my response then?
John> This is a bug -- thanks for reporting it. I just committed
John> changes to svn to fix it.
Ie, it is a bug that is fixed and you must use the svn version of
matplotlib .....
JDH
|