Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Rich Shepard
On Sun, 25 Nov 2007, Angus McMorland wrote: > If you change exp -> nx.exp in your definition of gauss1d, all works okay. Angus, Yes, it works just fine. By adjusting the value of the fwhm parameter I can produce the curves we need for both display and printing. Now I can spend some time

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Rich Shepard
On Sun, 25 Nov 2007, Angus McMorland wrote: > As I suspected, this is a parameter issue- in this case caused by your use > of the ath module routines which require scalar input, rather than numpy's > (or matplotlib's numerix's) array-friendly versions. If you change exp -> > nx.exp in your definit

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Angus McMorland
On 25/11/2007, Rich Shepard <[EMAIL PROTECTED]> wrote: > On Sun, 25 Nov 2007, Angus McMorland wrote: > > > I'm not completely sure, but I suspect that this is an implementation bug, > > rather than a version bug, particularly because the line in question isn't > > involving matplotlib at all. If yo

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Fernando Perez
On Nov 24, 2007 4:17 PM, Rich Shepard <[EMAIL PROTECTED]> wrote: > On Sun, 25 Nov 2007, Angus McMorland wrote: > > I've found it easiest to solve these sorts of bugs by running the code in > > an ipython shell, with automatic pdb calling. That way you can inspect the > > values of the parameters i

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Rich Shepard
On Sun, 25 Nov 2007, Angus McMorland wrote: > I'm not completely sure, but I suspect that this is an implementation bug, > rather than a version bug, particularly because the line in question isn't > involving matplotlib at all. If you post the relevant code > (normal-curve.py, by the looks of thi

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Angus McMorland
On 25/11/2007, Rich Shepard <[EMAIL PROTECTED]> wrote: > On Sat, 24 Nov 2007, Angus McMorland wrote: > > > Great. Hopefully this correction will make things even more clear. > >While the functions and equations are now clear, I get an error that was > present in matplotlib-0.87, but which shoul

[Matplotlib-users] need help on using py2exe !

2007-11-24 Thread Xiaoshan Xu
I was trying the covert my program into .exe file using py2exe. I got this message: File "pylab.pyc", line 1, in File "matplotlib\__init__.pyc", line 733, in File "matplotlib\__init__.pyc", line 273, in wrapper File "matplotlib\__init__.pyc", line 360, in _get_data_path RuntimeError: Could not

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Rich Shepard
On Sat, 24 Nov 2007, Angus McMorland wrote: > Great. Hopefully this correction will make things even more clear. While the functions and equations are now clear, I get an error that was present in matplotlib-0.87, but which should be fixed in -0.90.1: Traceback (most recent call last): Fil

Re: [Matplotlib-users] After saving in GUI, how can I get the oo-interface?

2007-11-24 Thread John Hunter
On Nov 23, 2007 2:00 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Arnar - > > I presume you are using Tk. > This is a known bug under Tk, that is apparently difficult to solve. > John Hunter looked into it a year back or so, but couldn't find help > from Tk experts that may know the solution. > Odd

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-24 Thread Rich Shepard
On Sat, 24 Nov 2007, Angus McMorland wrote: > Looking at my reply, I realised this was rubbish - sorry about that. The > fwhm is the difference between the two values of x that give Y = 0.5. Now that makes much more sense. Having control over the x values for the inflection point allows us to

Re: [Matplotlib-users] Installation of, Python/mpl/numpy/scipy/Ipython for

2007-11-24 Thread Eric Emsellem
Hi a quick note abut a "super package": to let people know that now OpenSuse 10.3 has a set of RPMs for all scipy, numpy, mpl, ipython, and others some of these being on the "science" repository, e.g.: http://download.opensuse.org/repositories/science/openSUSE_10.3/x86_64/ for the 64b distrib (ip

[Matplotlib-users] Installation of Python/mpl/numpy/scipy/Ipython for students

2007-11-24 Thread Mark Bakker
A question was posted a week or so ago on the scipy list about installing Python/mpl/numpy/scipy/Ipython by David Arnold (both Windows and Mac). He was interested in a simple install for students (and others that are less computer-savy). We had a little off-list correspondence, but thought to bring

Re: [Matplotlib-users] After saving in GUI, how can I get the oo-interface?

2007-11-24 Thread Mark Bakker
Well, that is very odd. Do Tk and GTK have the same problem? Was this known? Is there a more substantial problem here than a backend problem? Mark On Nov 24, 2007 11:31 AM, Arnar Flatberg <[EMAIL PROTECTED]> wrote: > Actually, I am using the GTK (Agg) backend. But thanks for replying. > > Arnar

Re: [Matplotlib-users] After saving in GUI, how can I get the oo-interface?

2007-11-24 Thread Arnar Flatberg
Actually, I am using the GTK (Agg) backend. But thanks for replying. Arnar On Nov 23, 2007 9:00 PM, Mark Bakker <[EMAIL PROTECTED]> wrote: > Arnar - > > I presume you are using Tk. > This is a known bug under Tk, that is apparently difficult to solve. > John Hunter looked into it a year back or s