Re: [matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-09 Thread Ariel Rokem
Hi - mea culpa - as pointed out by a colleague (and documented in the help document for "hanning" in Matlab), this function produces the same window, but without the first and last zero-weighted samples. Cheers -- Ariel On Tue, Feb 9, 2010 at 4:58 PM, Ariel Rokem wrote: >

Re: [matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-09 Thread Ariel Rokem
. I think I am willing to live with that. The only mystery that remains (I think) is - what is Matlab's "hanning" supposed to be doing? Are there two different windows: hann and hanning (not "hamming" - I know that's a different one)? Cheers, Ariel On Mon, Feb 8, 2010

Re: [matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-08 Thread Ariel Rokem
u intended, so I thought I would mention it. On Mon, Feb 8, 2010 at 1:24 AM, Ludwig Schwardt wrote: > Hi, > > On Mon, Feb 8, 2010 at 5:25 AM, Ariel Rokem wrote: > > I don't think that the cause of the discrepancy is because of the > > hamming/hanning window differenc

Re: [matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-07 Thread Ariel Rokem
wrote: > Hi, > > On Sun, Feb 7, 2010 at 12:46 AM, Ariel Rokem wrote: > > I don't think that a major reworking of the logic of the function is > needed. > > Simply replacing the line you mentioned with: > > > > Pxy *= 1 / (np.abs(windowVals)**2).sum()

Re: [matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-06 Thread Ariel Rokem
53 PM, Ludwig Schwardt wrote: > Hi, > > > From: Ariel Rokem > > However - two elements are off by a factor of approximately 2 - the > > very first element and the very last. ... Does anyone have any idea > > why this would be the case? > > >From a quick look at the

[matplotlib-devel] Comparison of mlab.csd and Matlab's cpsd

2010-02-04 Thread Ariel Rokem
lly a difference in the values. This is not only due to the fact that the DC component is very small, because even if I add a DC component to the time-series, there is still discrepancy of a factor of ~2 for that element. Does anyone have any idea why this would be the case? Thanks -- Ariel --

Re: [matplotlib-devel] Question on sphinxext.plot_directive...

2009-09-13 Thread Ariel Rokem
Hi Fernando and all, > > Speaking of sphinx for books, as I've mentioned before to John, the > last big problem is being able to cross-reference arbitrary text > elements like you can in latex, be they chapters or sections or > whatever, and get a number or something that's meaningful in print. >

Re: [matplotlib-devel] building on OSX

2009-08-24 Thread Ariel Rokem
gt;> > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best,

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-22 Thread Ariel Rokem
Hi - following up on this patch, as suggested, I have added a use-case of mlab.cohere_pairs to examples/pylab_examples/mri_with_eeg.py. Cheers, Ariel On Sat, Aug 22, 2009 at 4:27 PM, John Hunter wrote: > On Sat, Aug 22, 2009 at 6:00 PM, Ariel Rokem wrote: > >> so - now, almo

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-22 Thread Ariel Rokem
bal name 'typecode' is not defined So - as Fernando mentioned above, it is looking for something that doesn't exist anymore. With the patch (diff attached), this error no longer occurs. Cheers, Ariel On Wed, Aug 12, 2009 at 11:25 AM, Ariel Rokem wrote: > Hi - scratch that.

Re: [matplotlib-devel] building from SVN on Mac OS X 10.5

2009-08-22 Thread Ariel Rokem
Resending with CC to list: Hi - here is the diff with the suggested addition to the documentation. Cheers, Ariel On Sat, Aug 22, 2009 at 1:34 PM, John Hunter wrote: > On Sat, Aug 22, 2009 at 2:48 PM, Ariel Rokem wrote: >> Hi folks - >> >> just to add to the noise. He

Re: [matplotlib-devel] building from SVN on Mac OS X 10.5

2009-08-22 Thread Ariel Rokem
t helps. > > JDH > > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best

Re: [matplotlib-devel] Building matplotlib on os x

2009-08-13 Thread Ariel Rokem
600, Jeff Whitaker wrote: >> Ariel Rokem wrote: >> > Resending with CC to list: > >> > D'oh. I forgot to do that. OK - now I went back and ran: > >> > env ARCHFLAGS='-arch i386' python setup.py install > >> > That also went

Re: [matplotlib-devel] Building matplotlib on os x

2009-08-13 Thread Ariel Rokem
Hi Jeff, > > You are using the macosx backend.  Can you try another backend, say TkAgg, > by running: > > python test.py -dTkAgg ?? > > -Jeff tried that as well - it doesn't plot and produces the following traceback: ASR:Desktop arokem$ python example.py -dTkAgg Exception in Tkinter callback T

Re: [matplotlib-devel] Building matplotlib on os x

2009-08-13 Thread Ariel Rokem
Hi Jeff, > import matplotlib > matplotlib.__version__ > >> >> '0.98.5.2' >> > > Ariel:  This tells me you really didn't install it, or you installed it in a > different version of python than you are trying to import it with. That does sound reasonable - but how do you explain what fo

Re: [matplotlib-devel] Building matplotlib on os x

2009-08-13 Thread Ariel Rokem
On the other hand, it doesn't work. Cheers, Ariel On Thu, Aug 13, 2009 at 5:19 AM, Jeff Whitaker wrote: > Ariel Rokem wrote: >> >> Hi - that's interesting - I am actually on OS10.5. For some reason, >> the MPL libraries get built under a directory called >> &q

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-12 Thread Ariel Rokem
Hi - scratch that. Only *seems* to be working. Actually it hangs when I run scripts that open figures. I am going to undo all this and forget I ever started down this path. Cheers, Ariel On Wed, Aug 12, 2009 at 11:10 AM, Ariel Rokem wrote: > Hi again - a string of strange things just happe

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-12 Thread Ariel Rokem
hen I open ipython and import matplotlib, the version I have is 0.99, and it seems to work (opens plots and such). So - somehow the process worked, but how? Cheers, Ariel On Wed, Aug 12, 2009 at 10:08 AM, Ariel Rokem wrote: > Hi Fernando and John, > > regardless of the clunky way in wh

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-12 Thread Ariel Rokem
_pairs.diff > > udpate = update > > That will be fine -- I would like to help Ariel get his svn build > going, but if that is a distraction it doesn't need to slow the patch > down. For bugfixes we encourage patches against the release branch > > svn co > h

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-11 Thread Ariel Rokem
b /opt/local/lib/libz.1.dylib lipo: can't open input file: /var/folders/Qb/QbU9SmFNHoWnC7v-nTJYrE+++TI/-Tmp-//ccp3hmVy.out (No such file or directory) error: command 'g++' failed with exit status 1 make: *** [installers] Error 1 So - I am back to square 1, it seems. Do you know where I should

Re: [matplotlib-devel] mlab cohere_pairs patch

2009-08-11 Thread Ariel Rokem
ohn Hunter wrote: > On Tue, Aug 11, 2009 at 5:02 PM, Ariel Rokem wrote: > > > here is a suggested patch for mlab's cohere_pairs function. The old > version > > was broken, due to some outdated code. > > Thanks Ariel for the patch. Could you explain your patch in w

[matplotlib-devel] mlab cohere_pairs patch

2009-08-11 Thread Ariel Rokem
Hi, here is a suggested patch for mlab's cohere_pairs function. The old version was broken, due to some outdated code. Cheers, Ariel -- Ariel Rokem Helen Wills Neuroscience Institute University of California, Berkeley http://argentum.ucbso.berkeley.edu/ariel mlab_cohere_pairs_pat