From: <jd...@us...> - 2007-11-16 15:58:28
|
Revision: 4336 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4336&view=rev Author: jdh2358 Date: 2007-11-16 07:58:05 -0800 (Fri, 16 Nov 2007) Log Message: ----------- fixed bug in polyfit, polyval deprecation Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/mlab.py Modified: trunk/matplotlib/lib/matplotlib/mlab.py =================================================================== --- trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-16 15:56:34 UTC (rev 4335) +++ trunk/matplotlib/lib/matplotlib/mlab.py 2007-11-16 15:58:05 UTC (rev 4336) @@ -442,6 +442,7 @@ kw = dict(rowvar=False) return npy.corrcoef(*args, **kw) + def polyfit(*args, **kwargs): """ def polyfit(x,y,N) @@ -482,7 +483,7 @@ """ warnings.warn("use numpy.poyfit", DeprecationWarning) - return npy.polyfit(*args, **kw) + return npy.polyfit(*args, **kwargs) @@ -504,9 +505,8 @@ """ warnings.warn("use numpy.polyval", DeprecationWarning) - return npy.polyval(*args, **kw) + return npy.polyval(*args, **kwargs) - def vander(*args, **kwargs): """ X = vander(x,N=None) @@ -2262,7 +2262,8 @@ return x class FormatInt(FormatObj): - pass + def toval(self, x): + return x class FormatPercent(FormatFloat): def __init__(self, precision=4): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |