[Numpy-discussion] Get a 1D slice of a 3D data set?

2011-07-25 Thread Nicolas Bigaouette
Hi all, I have a 3D orthogonal and non-uniform grid representing a scalar field. I'm using matplotlib.image.NonUniformImage() to plot it similarly to imshow(). What I'd like to do is plot the values of the scalar field across a specific line (say, from point A to B). Any suggestion? Thanks! ___

Re: [Numpy-discussion] Regrading Numpy Documentation ...

2010-11-17 Thread Nicolas Bigaouette
Chrome might have some feature where local javascript can't be executed... just an idea ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] index of a value in an array

2010-10-06 Thread Nicolas Bigaouette
On Wed, Oct 6, 2010 at 5:26 AM, Chris Withers wrote: > Hi All, > > Given an array such as: > > array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) > > How can I find the index of a particular number in the array? > > (ie: if it was a list, I'd do [1,2,3,4].index(3)) > > cheers, > > Chris > _

Re: [Numpy-discussion] [Matplotlib-users] Vectorization

2010-07-30 Thread Nicolas Bigaouette
2010/7/2 Charles R Harris > > > On Fri, Jul 2, 2010 at 12:15 PM, Nicolas Bigaouette > wrote: > >> Hi all, >> >> I don't really know where to ask, so here it is. >> >> I was able to vectorize the normalization calculation in quantum >> m

Re: [Numpy-discussion] Efficient reading of binary data

2008-04-03 Thread Nicolas Bigaouette
2008/4/3, Robert Kern <[EMAIL PROTECTED]>: > > On Thu, Apr 3, 2008 at 6:53 PM, Nicolas Bigaouette > <[EMAIL PROTECTED]> wrote: > > Thanx for the fast response Robert ;) > > > > I changed my code to use the slice: > > E = data[6::9]It is indeed faster a

Re: [Numpy-discussion] Efficient reading of binary data

2008-04-03 Thread Nicolas Bigaouette
le with a slice? So instead of: data = numpy.fromfile(file=f, dtype=float_dtype, count=9*Stot) E = data[6::9] maybe something like: E = numpy.fromfile(file=f, dtype=float_dtype, count=9*Stot, slice=6::9) Thank you! 2008/4/3, Robert Kern <[EMAIL PROTECTED]>: > > On Thu, Apr 3, 2008 at 3:30 PM

[Numpy-discussion] Efficient reading of binary data

2008-04-03 Thread Nicolas Bigaouette
Hi, I have a C program which outputs large (~GB) files. It is a simple binary dump of an array of structure containing 9 doubles. You can see this as a double 1D array of size 9*Stot (Stot being the allocated size of the array of structure). The 1D array represents a 3D array (Sx * Sy * Sz = Stot)