1 Nov 2002 12:59

### Compiling with weave and g++ 3.2

Hi,

I wrote some code using weave.inline, and this code would
not compile due to random_access_iterator: no such class.

I read that this has been an issue, but could not find an answer.
I have in the mean time found a way to compile the code:
in Config.hxx I changed
STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
to
STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0

I Don't know what it does, but at least my code runs again.

Regards,
Leon Widdershoven

1 Nov 2002 23:34

### Re: Debian package(s)?

On Mon, Oct 28, 2002 at 03:27:54PM -0500, Kyler Laird wrote:
> Will SciPy be a Debian package soon?  I'd like to
> have some people start using it.

I guess that Joe Reinhardt is best-placed to answer that.
[c.f. http://bugs.debian.org/126037]

The latest build on his web page is a CVS snapshot of 2002-07-24.
However, it's built using python 2.1 and so it doesn't install on a
recent "sid" box.

I'm guessing that one hold-up is that scipy 0.2 hasn't
been officially released.  Joe?

-S

3 Nov 2002 01:24

### Getting postscript out of gplt

Hi.

I'm trying to get some postscript output of a gplt plot. Is there
somewhere I can find more documentation on the gplt.output function?
basically, I want the plot to be black and white, with a white
background.  I tried replacing the png example from the plotting
tutorial with ps, eps and postscript, to no avail.

Thanks
Neilen
--

--
all we are waiting for is something worth waiting for
--- KMFDM

3 Nov 2002 01:35

### Re: Getting postscript out of gplt

OK, I found it :)

Just for the archives, the command is gplt.output("filname", "postscript
eps").  The format seems to correspond to "set termimal xxx" command in
gnuplot.

Cheers
Neilen

On Sun, 2002-11-03 at 02:24, Neilen wrote:
> Hi.
>
> I'm trying to get some postscript output of a gplt plot. Is there
> somewhere I can find more documentation on the gplt.output function?
> basically, I want the plot to be black and white, with a white
> background.  I tried replacing the png example from the plotting
> tutorial with ps, eps and postscript, to no avail.
>
> Thanks
> Neilen
> --
> all we are waiting for is something worth waiting for
> 		   		   --- KMFDM
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user <at> scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
--

--
all we are waiting for is something worth waiting for


3 Nov 2002 01:54

### Including LaTeX commands in the output of a gplt plot

Hi.

I have, since my last mail, also found out that I can get output
straight into LaTeX.  Sweet. Now, it would be even more fantastic if I
can include \whatever command in the titles.  It seems gplt strips off
the \. Is there any way this may be done?

Thanks
Neilen
--

--
all we are waiting for is something worth waiting for
--- KMFDM

2 Nov 2002 01:54

### Re: Debian package(s)?


>> Will SciPy be a Debian package soon?  I'd like to
>> have some people start using it.

Steve> I guess that Joe Reinhardt is best-placed to answer that.
Steve> [c.f. http://bugs.debian.org/126037]

SciPy is available from Fink (the project to make many open source packages
available on MacOSX), which uses Debian's packaging mechanism.  Fink's at

http://fink.sf.net/

Skip

3 Nov 2002 18:12

### Vector plot using gplt

Hi

I'd like to do a vector plot of a 2D field.  If I remember correctly,
the matlab quiver() command would have made this easy.

Looking at the gnuplot manual, I see it has a "set arrow" command, which
looks like it might help me.  Is there any way I can talk to gnuplot on
the level where I can do set command from scipy?  Or are there any other
(easier?) possibilities?

Thanks
Neilen

--

--
all we are waiting for is something worth waiting for
--- KMFDM

3 Nov 2002 22:11

### signal.iirdesign throws a TypeError on Win32, any idea why, or what I'm doing wrong ?


My Setup is binary installs as follows onto Win2K SP3:
Python-2.2.2.exe
win32all-148.exe
wxPythonWIN32-2.3.3.1-Py22.exe
Numeric-22.0.win32-py2.2.exe
SciPy-0.2.0_alpha_145.4398.win32-py2.2.exe

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
>>> from scipy import signal
>>> signal.iirdesign(0.2, 0.3, 3, 40)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python22\Lib\site-packages\scipy\signal\filter_design.py", line
378,
in iirdesign
return iirfilter(N, Wn, rp=gpass, rs=gstop, analog=analog, btype=btype,
ftyp
e=ftype, output=output)
File "C:\Python22\Lib\site-packages\scipy\signal\filter_design.py", line
448,
in iirfilter
z, p, k = typefunc(N, rp, rs)
File "C:\Python22\Lib\site-packages\scipy\signal\filter_design.py", line
1052,
in ellipap
disp=0)
File "C:\Python22\Lib\site-packages\scipy\optimize\optimize.py", line 145,
in


4 Nov 2002 02:49

### Re:Way to get values which are the same on two arrays


Hi José,

written a function to find the intersection of 2 sets (using a histogram
function) for my own work. I'm not sure if it is the most efficient
method, but it seems to work.

from Numeric import *

def histogram(a, bins):
"""counts the number of values in a that fall into each of the bins
in bin"""
n = searchsorted(sort(a),bins)
n = concatenate([n,[len(a)]])
return asarray(n[1:]-n[:-1])

def intersection(a,b):
"""takes two 1D arrays and returns an array of values that are in
both arrays"""
if a.typecode() != 'l' or b.typecode() != 'l':
raise ValueError, "arrays must be of type Int"

#make bins from intersection of ranges
minab = max([minimum.reduce(a),minimum.reduce(b)])
maxab = min([maximum.reduce(a),maximum.reduce(b)])
#   -> If either set is empty, or their ranges don't intersect
if maxab < minab or maxab < 0:
return None
bins = arange(minab,maxab+1)


4 Nov 2002 12:34

### ODE solver's in scipy

Hi,

How can I solve the following ODE in scipy

A(t,z) \dot{z} = f(z),    z(0) = z_0

where A is a real matrix depending on t and z;
\dot denotes derivative with respect to time t.

Nils


Gmane