Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Tom Holroyd (NIH/NIMH) [E]
Just a bad example. I know there are functions that were originally defined in Matlab and then got rewritten in python, but I've never been clear on which modules they really live in. Ryan May wrote: > Tom Holroyd (NIH/NIMH) [E] wrote: >> Eric Firing wrote: >>> Similarly, after dealing with mla

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Tom Holroyd (NIH/NIMH) [E]
Eric Firing wrote: > Similarly, after dealing with mlab, I would like to simplify pylab. > Right now, we have a horrible tangle of namespaces in pylab. Cleaning > this up will potentially break user code; if a numpy function formerly > could be referenced with three different names and we kno

Re: [matplotlib-devel] Font installation stuff

2007-08-10 Thread Eric Firing
Michael Droettboom wrote: [...] > All this raises a much larger question of whether we want to replace > font_manager.py with something like fontconfig. There don't appear to > be Python wrappers for it, but it would eliminate a number of issues > with font_manager.py : a) it would look up fonts i

[matplotlib-devel] Font installation stuff

2007-08-10 Thread Michael Droettboom
I just finished writing code to support scalable mathtext with the Cairo backend. (The old version rendered the mathtext to bitmaps first). Mostly straightforward, but I ran into one small snag. It *seems* that pycairo requires that the fonts it uses are installed and accessible through fontconf

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Christopher Barker
Ryan May wrote: >> I for one will be happy to change my code; numerical stuff in >> numpy, plotting stuff in pylab (or pyplot?), though some things >> like linspace() may be hard to loose; that's really an mlab >> function and I can import mlab. I'm a big namespace fan. I'd much rather see us all

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Ryan May
Tom Holroyd (NIH/NIMH) [E] wrote: > > Eric Firing wrote: >> Similarly, after dealing with mlab, I would like to simplify pylab. >> Right now, we have a horrible tangle of namespaces in pylab. Cleaning >> this up will potentially break user code; if a numpy function formerly >> could be referen

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Eric Firing
Tom Holroyd (NIH/NIMH) [E] wrote: [...] > > For the C library you say "man strcpy" or "man erf" and it tells you > what include file to use to get the definition (function prototype). In > python you only get the help after you've already imported. But it was > and still is reasonable to have a

Re: [matplotlib-devel] cxx improvements

2007-08-10 Thread Michael Droettboom
Christopher Barker wrote: >> http://www.artima.com/weblogs/viewpost.jsp?thread=95863 > > Thanks >> (It was in Mike's original message.) > > I must have missed that. Guido says: > > """ > I've yet to see an extension module using SWIG that doesn't make me > think it was a mistake to use SWIG ins

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Eric Firing
Christopher Barker wrote: > Ryan May wrote: >>> I for one will be happy to change my code; numerical stuff in >>> numpy, plotting stuff in pylab (or pyplot?), though some things >>> like linspace() may be hard to loose; that's really an mlab >>> function and I can import mlab. > > I'm a big namesp

Re: [matplotlib-devel] cxx improvements

2007-08-10 Thread Michael Droettboom
Eric Firing wrote: > Michael Droettboom wrote: >> I appreciate the way it fits so nicely into C++ ideas about RAII and >> exceptions -- but if you're not a C++ guy, that pro is probably a con. > What is RAII? "Resource Aquisition is Initialization" -- It's a C++ memory management technique where

Re: [matplotlib-devel] mlab and pylab

2007-08-10 Thread Christopher Barker
Eric Firing wrote: > I do not think mlab > should "from numpy import *"; if that is what someone wants, they can do > it explicitly themselves, very easily. Now, pylab should do something > like "from mlab import *; from numpy import *; from pyplot import *", > but mlab should be its own nice,