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!
___
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
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
> _
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
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
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
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)