Re: [Matplotlib-users] [SciPy-user] How to draw a 3D graphic of a function?

2008-05-03 Thread Alan G Isaac
On Sun, 13 Apr 2008, "James A. Bednar" apparently wrote: > def matrixplot3d(mat,title=None): > fig = pylab.figure() > ax = axes3d.Axes3D(fig) > # Construct matrices for r and c values > rn,cn = mat.shape > c = outer(ones(rn),arange(cn*1.0)) > r = outer(arange(rn*1.0),ones(c

Re: [Matplotlib-users] polyfit degree problem ?

2008-05-03 Thread Eric Firing
sa6113 wrote: > Dear All, > > I have a problem using polyfit with a degree greater than 118 : The problem is that polynomial fitting generally doesn't make sense for degree higher than 4 or 5--if that--and at very high degree it is inevitable that the matrix will become singular. In other words

Re: [Matplotlib-users] markeredgewidth and pdf

2008-05-03 Thread Christopher Brown
Christopher Brown wrote: > With mpl 0.91.2, the markeredgewidth property does not seem to have an > effect when using the pdf backend (seems to always be 1, regardless of > what I set it to, and it seems to be fine with other backends). Here is > a minimal example: Interestingly, the error only

Re: [Matplotlib-users] polyfit degree problem ?

2008-05-03 Thread John Hunter
On Sat, May 3, 2008 at 3:11 AM, sa6113 <[EMAIL PROTECTED]> wrote: > > Dear All, > > I have a problem using polyfit with a degree greater than 118 : > > The code is : > matplotlib.mlab.polyfit( x, y, pow ) # pow is degree of polynomial > > for pow in range 118 and 238 the error is : > LinA

[Matplotlib-users] polyfit degree problem ?

2008-05-03 Thread sa6113
Dear All, I have a problem using polyfit with a degree greater than 118 : The code is : matplotlib.mlab.polyfit( x, y, pow ) # pow is degree of polynomial for pow in range 118 and 238 the error is : LinAlgError, 'singular martix' and for pow greater than 237 this error raise : OverflowErro