Re: [Matplotlib-users] plot cdf

2007-09-27 Thread Alan G Isaac
After thinking it over, I did not go for Robert or David's cool numpy tricks, but I'll append a simple object in case someone else wants to do more. Cheers, Alan Isaac class EmpiricalCDF(object): '''Empirical cdf. First point will be (xmin,0). Last point will be (xmax,1). '''

Re: [Matplotlib-users] NameError: global name '__loader__' is not defined

2007-09-27 Thread Eric Firing
Hal Huntley wrote: > Thanks to Eric Firing and Christopher Barker for input on trying to > resolve the problem. Christopher said: > %%% > You might try just: > > easy_install numpy > > easy_install matplotlib. > %%% > > > I did that and now the problem moved and I get: > === from pylab im

Re: [Matplotlib-users] Problem with tick labels in scripts

2007-09-27 Thread Charles Seaton
Looking back through the archives, I found this discussion of manipulating ticklabels. Jouni K. Seppänen wrote: > > Eugen Wintersberger <[EMAIL PROTECTED]> > writes: > >> The first line is the printing of the ticklabel list before the >> pylab.show() command. The second after pylab.show(). Why

Re: [Matplotlib-users] NameError: global name '__loader__' is not defined

2007-09-27 Thread Hal Huntley
Thanks to Eric Firing and Christopher Barker for input on trying to resolve the problem. Christopher said: %%% You might try just: easy_install numpy easy_install matplotlib. %%% I did that and now the problem moved and I get: === >>> from pylab import * Traceback (most recent call last): Fi

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Tom Johnson
On 9/27/07, Tom Johnson <[EMAIL PROTECTED]> wrote: > However, it will be a little while before I can provide a status > updateI have a presentation very soon and do not have the time to > regenerate all my images so that the background matches my > presentation background. Since my setup had b

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Tom Johnson
On 9/27/07, Darren Dale <[EMAIL PROTECTED]> wrote: > On Thursday 27 September 2007 01:28:46 am Tom Johnson wrote: > > On 9/26/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I used your script to create the eps file, and created the attached > > > postscript > > > (you need an \end{document} in yo

Re: [Matplotlib-users] plot cdf

2007-09-27 Thread Alan G Isaac
On Thu, 27 Sep 2007, David Huard apparently wrote: > scipy/sandbox/dhuard/stats.py Well, I also did not think of a double application of argsort to rank the observations. Nice. OK, I've got plenty to work with now. Thanks, Alan --

Re: [Matplotlib-users] plot cdf

2007-09-27 Thread Alan G Isaac
On Wed, 26 Sep 2007, Robert Kern apparently wrote: > n = len(x) > x2 = np.repeat(x, 2) > y2 = np.hstack([0.0, np.repeat(np.arange(1,n) / float(n), 2), 1.0]) > pylab.plot(x2, y2) OK, that's pretty slick. I did not think about ``repeat``. Thanks, Alan

Re: [Matplotlib-users] plot cdf

2007-09-27 Thread David Huard
Hi Alan, There is an empiricalcdf function in scipy/sandbox/dhuard/stats.py It's not fancy but it might do what you want. David 2007/9/26, Alan Isaac <[EMAIL PROTECTED]>: > > Is there a standard function or practice for > plotting the CDF of a series? (I am aware > of the output of hist.) > > T

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Darren Dale
On Thursday 27 September 2007 09:34:28 am Darren Dale wrote: > On Thursday 27 September 2007 01:28:46 am Tom Johnson wrote: > > On 9/26/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > > I used your script to create the eps file, and created the attached > > > postscript > > > (you need an \end{docum

Re: [Matplotlib-users] edgecolor with usetex=True, usedistiller='pdf'

2007-09-27 Thread Darren Dale
On Thursday 27 September 2007 01:28:46 am Tom Johnson wrote: > On 9/26/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > I used your script to create the eps file, and created the attached > > postscript > > (you need an \end{document} in your latex code). > > Whoops! > > > Do you see anything wrong >

Re: [Matplotlib-users] multiple figures interactively

2007-09-27 Thread Lee, Young-Jin
Thanks much! But, it didn't help. The second figure got still really slow and closes right away after it finishes drawing not giving enough time to me to see the figure. Then, it crashed for the third one. Any idea? Young Jin -Original Message- From: Wolfgang Kerzendorf [mailto:[EMAIL PRO

Re: [Matplotlib-users] etframes: Applying the ideas of Edward Tufte to matplotlib

2007-09-27 Thread David Cournapeau
Andrew Straw wrote: > I came across this piece by Adam Hupp on programming.reddit.com just > now. It looks interesting: > > http://hupp.org/adam/weblog/2007/09/03/etframes-applying-the-ideas-of-edward-tufte-to-matplotlib/ > > > This is indeed really interesting. Thanks for this link, David