Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread josef . pktd
On Thu, Oct 13, 2011 at 6:42 PM, John Hunter wrote: > On Thu, Oct 13, 2011 at 5:36 PM, Eric Firing wrote: > >>> It would be nice to have a social interface for the mpl gallery like the >>> one similar to the R-gallery >>> [http://www.r-bloggers.com/the-r-graph-gallery-goes-social/] >> >> I think

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread John Hunter
On Thu, Oct 13, 2011 at 5:36 PM, Eric Firing wrote: >> It would be nice to have a social interface for the mpl gallery like the >> one similar to the R-gallery >> [http://www.r-bloggers.com/the-r-graph-gallery-goes-social/] > > I think that the priority should go towards massive pruning, > organi

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Eric Firing
On 10/13/2011 12:22 PM, Gökhan Sever wrote: > > > On Thu, Oct 13, 2011 at 4:15 PM, Benjamin Root > wrote: > > Myself and other developers would greatly appreciate help from the > community to point out which examples are too confusing or out of > date. We > > >

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Skipper Seabold
On Thu, Oct 13, 2011 at 6:22 PM, Gökhan Sever wrote: > > > On Thu, Oct 13, 2011 at 4:15 PM, Benjamin Root wrote: >> >> Myself and other developers would greatly appreciate help from the >> community to point out which examples are too confusing or out of date. We > > It would be nice to have a so

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Gökhan Sever
On Thu, Oct 13, 2011 at 4:15 PM, Benjamin Root wrote: > Myself and other developers would greatly appreciate help from the > community to point out which examples are too confusing or out of date. We > It would be nice to have a social interface for the mpl gallery like the one similar to the R-

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, John Salvatier wrote: > Thank you John, those are looking useful. > I have been working to improve the docs. One of the frustrating things about the docs is the information overload in some places and the lack of information elsewhere. Further, the rigidity of the

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Gökhan Sever
On Thu, Oct 13, 2011 at 4:03 PM, Gökhan Sever wrote: > > I think, IPython is great for interaction with the OO interface of the > matlab. Just starting simple with: > > fig=plt.figure() > ax=plt.gca() > and keep tabbing ax., fig. or any object you create on the canvas > .tab to get its methods a

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Gökhan Sever
On Thu, Oct 13, 2011 at 3:21 PM, Zachary Pincus wrote: > I keep meaning to use matplotlib as well, but every time I try I also get > really turned off by the matlabish interface in the examples. I get that > it's a selling point for matlab refugees, but I find it counterintuitive in > the same way

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread John Salvatier
Thank you John, those are looking useful. On Thu, Oct 13, 2011 at 2:39 PM, John Hunter wrote: > > > > > On Oct 13, 2011, at 4:21 PM, Zachary Pincus > wrote: > > > I keep meaning to use matplotlib as well, but every time I try I also get > really turned off by the matlabish interface in the exam

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread John Hunter
On Oct 13, 2011, at 4:21 PM, Zachary Pincus wrote: > I keep meaning to use matplotlib as well, but every time I try I also get > really turned off by the matlabish interface in the examples. I get that it's > a selling point for matlab refugees, but I find it counterintuitive in the > same

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread John Salvatier
I second that request. On Thu, Oct 13, 2011 at 2:21 PM, Zachary Pincus wrote: > I keep meaning to use matplotlib as well, but every time I try I also get > really turned off by the matlabish interface in the examples. I get that > it's a selling point for matlab refugees, but I find it counterint

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Zachary Pincus
I keep meaning to use matplotlib as well, but every time I try I also get really turned off by the matlabish interface in the examples. I get that it's a selling point for matlab refugees, but I find it counterintuitive in the same way Christoph seems to. I'm glad to hear the OO interface isn't

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Russell E. Owen
In article <8739ew90ry@falma.de>, Christoph Groth wrote: > Hello, > > Is it just me who thinks that matplotlib is ugly and a pain to use? So > far I haven't found a decent alternative usable from within python. (I > haven't tried all the packages out there.) I'm mostly interested in 2d >

Re: [Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Joe Kington
Have a look at Chaco: http://code.enthought.com/chaco/ If you're wanting a more pythonic api, it's a good choice. Personally, I still prefer matplotlib. You don't every need to touch the state machine interface. The OO interface is slighly un-pythonic, but it's hardly clunky. I think you're ref

[Numpy-discussion] wanted: decent matplotlib alternative

2011-10-13 Thread Christoph Groth
Hello, Is it just me who thinks that matplotlib is ugly and a pain to use? So far I haven't found a decent alternative usable from within python. (I haven't tried all the packages out there.) I'm mostly interested in 2d plots. Who is happy enough with a numpy-compatible plotting package to rec

Re: [Numpy-discussion] NumPy foundations

2011-10-13 Thread Bruce Southey
On 10/13/2011 10:53 AM, Chris.Barker wrote: > On 10/13/11 6:03 AM, Linus Jundén wrote: >> I am about to make a NumPy presentation for my colleges in about a >> week. I want to tell them something about the history of the library >> and what kind of code it relies on. >> Is NumPy based on some exter

Re: [Numpy-discussion] the axis parameter in the np.ma.concatenate is not working?

2011-10-13 Thread josef . pktd
On Thu, Oct 13, 2011 at 1:17 PM, Chao YUE wrote: > Dear all, > > I use numpy version 1.5.1 which is installed by default when I do sudo > apt-get install numpy on ubuntu 11.04. > but it seems that for np.ma.concatenate(arrays, axis), the axis parameter is > not working? > > In [460]: a=np.arange(1

[Numpy-discussion] the axis parameter in the np.ma.concatenate is not working?

2011-10-13 Thread Chao YUE
Dear all, I use numpy version 1.5.1 which is installed by default when I do sudo apt-get install numpy on ubuntu 11.04. but it seems that for np.ma.concatenate(arrays, axis), the axis parameter is not working? In [460]: a=np.arange(10) In [461]: a=np.ma.masked_array(a,a<3) In [462]: a Out[462]:

Re: [Numpy-discussion] ndarray with double comparison

2011-10-13 Thread Marc Shivers
you could use bitwise comparison with paretheses: In [8]: (a>4)&(a<8) Out[8]: array([False, False, False, False, False, True, True, True, False, False, False], dtype=bool) On Thu, Oct 13, 2011 at 12:13 PM, Chao YUE wrote: > Dear all, > > sorry for this stupid question but I cannot fin

Re: [Numpy-discussion] ndarray with double comparison

2011-10-13 Thread Chao YUE
Thanks. I starts to use python do some real data processing and has bunch of questions. Chao 2011/10/13 Benjamin Root > On Thu, Oct 13, 2011 at 11:13 AM, Chao YUE wrote: > >> Dear all, >> >> sorry for this stupid question but I cannot find it in numpy tutorial or >> google. >> suppose I have a

Re: [Numpy-discussion] ndarray with double comparison

2011-10-13 Thread Benjamin Root
On Thu, Oct 13, 2011 at 11:13 AM, Chao YUE wrote: > Dear all, > > sorry for this stupid question but I cannot find it in numpy tutorial or > google. > suppose I have a=np.arange(11). > > In [32]: a < 8 > Out[32]: > array([ True, True, True, True, True, True, True, True, False, >Fal

Re: [Numpy-discussion] ndarray with double comparison

2011-10-13 Thread Gökhan Sever
On Thu, Oct 13, 2011 at 10:13 AM, Chao YUE wrote: > Dear all, > > sorry for this stupid question but I cannot find it in numpy tutorial or > google. > suppose I have a=np.arange(11). > > In [32]: a < 8 > Out[32]: > array([ True, True, True, True, True, True, True, True, False, >Fal

[Numpy-discussion] ndarray with double comparison

2011-10-13 Thread Chao YUE
Dear all, sorry for this stupid question but I cannot find it in numpy tutorial or google. suppose I have a=np.arange(11). In [32]: a < 8 Out[32]: array([ True, True, True, True, True, True, True, True, False, False, False], dtype=bool) In [34]: a > 4 Out[34]: array([False, False,

Re: [Numpy-discussion] NumPy foundations

2011-10-13 Thread Chris.Barker
On 10/13/11 6:03 AM, Linus Jundén wrote: > I am about to make a NumPy presentation for my colleges in about a > week. I want to tell them something about the history of the library > and what kind of code it relies on. > Is NumPy based on some external code like e.g. BLAS, LAPACK etc or is > it co

Re: [Numpy-discussion] how to list all the values in a ndarray without repeat (like filter in excel)

2011-10-13 Thread Chao YUE
Yes, np.unique() is exactly what I want. thanks. chao 2011/10/13 Benjamin Root > > > On Thursday, October 13, 2011, Chao YUE wrote: > > Dear all, > > > > if I have a ndarray like array([1,2,3,2,3,1,1,1,2,2,,2,2,3]) > containing some values that are flag for data quality. > > how can list a

Re: [Numpy-discussion] how to list all the values in a ndarray without repeat (like filter in excel)

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, Chao YUE wrote: > Dear all, > > if I have a ndarray like array([1,2,3,2,3,1,1,1,2,2,,2,2,3]) containing some values that are flag for data quality. > how can list all the values in this array, like doing a descriptive statistics. I guess I should use Scipy statis

Re: [Numpy-discussion] how to list all the values in a ndarray without repeat (like filter in excel)

2011-10-13 Thread josef . pktd
On Thu, Oct 13, 2011 at 9:14 AM, Chao YUE wrote: > Dear all, > > if I have a ndarray like array([1,2,3,2,3,1,1,1,2,2,,2,2,3]) containing > some values that are flag for data quality. > how can list all the values in this array, like doing a descriptive > statistics. I guess I should use Scipy

Re: [Numpy-discussion] NumPy foundations

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, Linus Jundén wrote: > Hello everyone! > > I am about to make a NumPy presentation for my colleges in about a > week. I want to tell them something about the history of the library > and what kind of code it relies on. While researching and preparing > for this presen

[Numpy-discussion] how to list all the values in a ndarray without repeat (like filter in excel)

2011-10-13 Thread Chao YUE
Dear all, if I have a ndarray like array([1,2,3,2,3,1,1,1,2,2,,2,2,3]) containing some values that are flag for data quality. how can list all the values in this array, like doing a descriptive statistics. I guess I should use Scipy statistics ? Thanks for any ideas. Chao -- ***

[Numpy-discussion] NumPy foundations

2011-10-13 Thread Linus Jundén
Hello everyone! I am about to make a NumPy presentation for my colleges in about a week. I want to tell them something about the history of the library and what kind of code it relies on. While researching and preparing for this presentation I found it very hard to find information about the origi