On 4/5/07, Eric Firing <[EMAIL PROTECTED]> wrote:
> John Hunter wrote:
> [...]
> > As for your specific points:
> >
> >   * inside matplotlib we should just use numpy everywhere.  We need to
> > agree on some import convention.  I'm happy with 'import numpy as nx'
> > though this might be confusing for a while since people might confuse
> > it with the numerix layer.  I like nx because numpy is too long, and N
> > occurs too frequently in regular code.  I don't like capital
> > letters.... I could see ns too, since that is what we have been using
> > for the numpy extensions when numpy was originally discussed in the
> > context of the scipy core.
>
> ns is not very mnemonic, and I think we should avoid the confusion
> between nx as numerix and nx as numpy, so I suggest "np" for numpy.  It
> is mnemonic, and it will make it easier to keep track of the conversion
> process.  An alternative would be "nu".

My opinion is that all of N,np,nu,ns,nx look too much like variable
names I commonly use (nx == number of x values, etc).  And none of
them looks particularly to me like the name of a big package for doing
numerical work.

So I suggest instead 'npy'.  It is already used extensively in the C
API of Numpy so it has strong precedent as an abbreviation.  It also
*looks* to me like an abbreviation for 'numpy' as opposed to "number
of points (np)" or something else.   Having 3 letters also makes it
slightly less likely to clash with typical short user variable names.

One thing it doesn't have is a nice analogous abbreviation for scipy.
The direct analog would of course be 'spy', but that's obviously out.
Even if pylab.spy didn't exist, it still doesn't look like an
abbreviation for scipy.  I guess I like sci for scipy.  npy and sci.

--bb

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to