Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Angus McMorland
On 24/11/2007, Rich Shepard <[EMAIL PROTECTED]> wrote: > On Sat, 24 Nov 2007, Angus McMorland wrote: > > > fwhm is the full-width at half the maximum height, i.e. it's the > > difference between the two values of x when: > > > > |r - c| = 0.5 Looking at my reply, I realised this was rubbish - sorr

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Rich Shepard
On Sat, 24 Nov 2007, Angus McMorland wrote: > fwhm is the full-width at half the maximum height, i.e. it's the > difference between the two values of x when: > > |r - c| = 0.5 Angus, The additional explanation helps a lot. > The fwhm is a shape parameter (like std dev) - it determines the wi

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Angus McMorland
On 24/11/2007, Rich Shepard <[EMAIL PROTECTED]> wrote: > On Fri, 23 Nov 2007, Angus McMorland wrote: > > > For parsimony, I think you're probably best off just using the Gaussian > > equation: > > > > def fwhm2k(fwhm): > >'''converts fwhm value to k (see above)''' > >return fwhm/(2 * n.sqrt

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Rich Shepard
On Thu, 22 Nov 2007, Rich Shepard wrote: >> For parsimony, I think you're probably best off just using the >> Gaussian equation: >> >> def fwhm2k(fwhm): >>'''converts fwhm value to k (see above)''' >>return fwhm/(2 * n.sqrt( n.log( 2 ) ) ) >> >> def gauss1d(r, fwhm, c): >>'''returns th

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

2007-11-23 Thread Mark Bakker
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. Oddly enough, I have written my own GUI in Tk, where I modified the toolbar, and

[Matplotlib-users] ANN: basemap toolkit version 0.9.7 released

2007-11-23 Thread Jeff Whitaker
(sorry for botched subject line in the first message) Basemap 0.9.7 is available for download. http://www.python.org/pypi/basemap/0.9.7 http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792&release_id=555980

[Matplotlib-users] [Fwd: [matplotlib-devel] ANN: matplotlib-0.90.0]

2007-11-23 Thread Jeff Whitaker
Basemap 0.9.7 is available for download. http://www.python.org/pypi/basemap/0.9.7 http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792&release_id=555980 Windows installe

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Rich Shepard
On Fri, 23 Nov 2007, Jeff Whitaker wrote: > Rich: The tails of a Gaussian never reach zero - they just asymptote to zero > for large x. Jeff, For all practical purposes, that's fine. Usually any y value > 0.20 (the default) is considered functionally equivalent to zero. If the display looks

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-23 Thread Jeff Whitaker
Rich Shepard wrote: > On Fri, 23 Nov 2007, Angus McMorland wrote: > > >> For parsimony, I think you're probably best off just using the >> Gaussian equation: >> >> def fwhm2k(fwhm): >>'''converts fwhm value to k (see above)''' >>return fwhm/(2 * n.sqrt( n.log( 2 ) ) ) >> >> def gauss1d(r