Re: [Numpy-discussion] adding field to rec array

2007-09-26 Thread Robert Kern
John Hunter wrote: > I have a record array r and I want to add a new field to it. I have > been looking at setfield but I am not sure how to use it for this > purpose. Eg > > # r is some npy record array > N = len(r) > x = npy.zeros(N) > # add array of floats x to r with dtype name 'jdh' and typ

[Numpy-discussion] adding field to rec array

2007-09-26 Thread John Hunter
I have a record array r and I want to add a new field to it. I have been looking at setfield but I am not sure how to use it for this purpose. Eg # r is some npy record array N = len(r) x = npy.zeros(N) # add array of floats x to r with dtype name 'jdh' and type 'http://projects.scipy.org/mailma

Re: [Numpy-discussion] matplotlib - representation of nan values in 2D

2007-09-26 Thread Dirk Zickermann
sorry and thanks for that hint! Dirk 2007/9/26, Robert Kern <[EMAIL PROTECTED]>: > > Dirk Zickermann wrote: > > Dear pylab group, > > Sorry, this isn't the matplotlib mailing list. You want this one: > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- > Robert Kern > > "I ha

Re: [Numpy-discussion] matplotlib - representation of nan values in 2D

2007-09-26 Thread Robert Kern
Dirk Zickermann wrote: > Dear pylab group, Sorry, this isn't the matplotlib mailing list. You want this one: https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our

[Numpy-discussion] matplotlib - representation of nan values in 2D

2007-09-26 Thread Dirk Zickermann
Dear pylab group, for the represenation of 2d measurement data I use the contourplot function from matplotlib. Some points in this map are not measurabel, therefore I get a non numerical value (nan) output. >From this data I want to generate a map and a histogram plot. This works fine, as long as