Christopher Barker wrote:
> Hi all,
> 
> I'm working on a MPL build for OS-X, and I'd like to be able to write 
> scripts that will test as much as I can. In particular, I want to have 
> this build work with Numeric, numarray and numpy.
> 
> To script that test, I need to be able to set numerix in a script, 
> rather than in matplotlibrc. Can that be done?

For testing you may also take advantage of command-line arguments:

python examples/image_demo.py --Numeric

for example, runs using Numeric as the numerix setting.

The relevant code in numerix/__init__.py is:
for a in sys.argv:
     if a in ["--Numeric", "--numeric", "--NUMERIC",
              "--Numarray", "--numarray", "--NUMARRAY",
              "--NumPy", "--numpy", "--NUMPY", "--Numpy",
              ]:
         which = a[2:], "command line"
         break
     del a

If such a command-line option is found, it overrides everything else.

Eric


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to