Hi Sebastian, Hi list,

I'm not the one to decide this, but I think it is worth to try to remove 
matplotlib.mlab routines, if their numpy counterparts provide the same 
functionality or do I miss anything? After doing this one additionally could 
clean up the imports in pylab in order to have only one call "from 
matplotlib.mlab import" instead of 3.

kind regards Matthias 

On Friday 12 June 2009 14:41:28 Sebastian Haase wrote:
> On Fri, Jun 12, 2009 at 2:01 PM, John Hunter<jdh2...@gmail.com> wrote:
> > On Fri, Jun 12, 2009 at 6:10 AM, Sebastian Haase<seb.ha...@gmail.com> 
wrote:
> >> On Fri, Jun 12, 2009 at 11:21 AM, Matthias
> >>
> >> Michler<matthiasmich...@gmx.net> wrote:
> >>> Hi Sebastian,
> >>>
> >>> You are right. A large number of numpy functions is part of pylab, but
> >>> I think this problem was solved by introducing matplotlib.pyplot, which
> >>> holds all plotting functions of matplotlib. The module pylab imports
> >>> these plotting functions and all the numpy-stuff in order to offer
> >>> plotting + numerical functions by one import.
> >>>
> >>> kind regards Matthias
> >>
> >> Matthias,
> >> thanks for the info. thats the info I was missing.
> >>
> >>>>> from matplotlib import pyplot
> >>>>> len(pyplot.__dict__)
> >>
> >> 191
> >>
> >> Now I'm somewhat wondering about the things in pylab that are not in
> >> pyplot nor in numpy.
> >> E.g.:
> >> pyplot.log2  is not numpy.log2
> >> or
> >> pyplot.window_hanning   vs.  numpy.hanning
> >> or
> >> pyplot.chisquare  (which however is in numpy.random)
> >
> > These symbols are not in svn:
> >
> >
> > In [59]: plt.log2
> > ------------------------------------------------------------
> > Traceback (most recent call last):
> >  File "<ipython console>", line 1, in ?
> > AttributeError: 'module' object has no attribute 'log2'
> >
> >
> > In [60]: plt.window_hanning
> > ------------------------------------------------------------
> > Traceback (most recent call last):
> >  File "<ipython console>", line 1, in ?
> > AttributeError: 'module' object has no attribute 'window_hanning'
>
> Sorry - I meant pylab ! not pyplot ...
> There are those symbols.
>
> -S.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to