Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. With this explanation I was able to get things to work. On Sep 14, 2011, at 12:41 PM, Benjamin Root wrote: > On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins > wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-15 Thread Raymond Hawkins
Thanks. Removing the import of pylab and adding your suggested "import matplotlib.pyplot as plt" worked. On Sep 14, 2011, at 12:46 PM, Eric Firing wrote: > On 09/14/2011 09:17 AM, Raymond Hawkins wrote: >> I'm getting odd behavior when I try to use fmin and pylab in the same >> program. The iss

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Eric Firing
On 09/14/2011 09:17 AM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, fmin > won't work: the "print xopt" simply returns the contents of x0 as assigned in > the line before

Re: [Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Benjamin Root
On Wed, Sep 14, 2011 at 2:17 PM, Raymond Hawkins wrote: > I'm getting odd behavior when I try to use fmin and pylab in the same > program. The issue is illustrated in the code snippet below. As written, > fmin won't work: the "print xopt" simply returns the contents of x0 as > assigned in the line

[Matplotlib-users] pylab collides with fmin?

2011-09-14 Thread Raymond Hawkins
I'm getting odd behavior when I try to use fmin and pylab in the same program. The issue is illustrated in the code snippet below. As written, fmin won't work: the "print xopt" simply returns the contents of x0 as assigned in the line before fmin. If the "from pylab import *" line is commented o