Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-22 Thread Rich Shepard
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, fwhm, c): >'''returns the 1d g

Re: [Matplotlib-users] Plotting Continuous Functions

2007-11-22 Thread Angus McMorland
On 23/11/2007, Rich Shepard <[EMAIL PROTECTED]> wrote: >Now I need to plot normal curves (a.k.a. Gaussian or bell curves, > depending on the background of the speaker/writer). I see that SciPy has a > class for the normal curve in its stats package, and that the curve shape is > defined by the

[Matplotlib-users] Plotting Continuous Functions

2007-11-22 Thread Rich Shepard
I see that I've been immortalized on the SciPy MatPlotLib Cookbook web page for my enquiry on plotting S- and Z-curves. The Boltzman function serves very well for that purpose, and I've tweaked the example code to allow me to pass in the two endpoints and the midpoint for each of these curves.

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

2007-11-22 Thread Arnar Flatberg
Hi list It looks like I cant change any properties of a matplotlib figure/axis after I saved the figure using the GUI. At least I cant use gca(), and gcf(). It works fine if the save (e.g., figure.savefig('foo')) was performed in the oo interface Does anybody else have a problem with this (code b