Hi,
I think there are a bug in numerix. I was expecting the same result from
pylab.where and numpy.where (in my matplotlibrc I have numerix define for
numpy) but like you can see in the following example the result is quite
different.
N.
Python 2.4.3 (#2, Apr 27 2006, 14:43:58)
Type "copyright", "credits" or "license" for more information.
IPython 0.7.3.svn -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.
In [1]: import numpy
In [2]: a = numpy.arange(123)
In [3]: pylab.where(a>23)
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent
call last)
/home/humufr/<ipython console>
TypeError: where() takes exactly 3 arguments (1 given)
In [4]: from matplotlib import rcParams
In [5]: rcPara
rcParams rcParamsDefault
In [5]: rcParams['numerix']
Out[5]: 'numpy'
In [6]: numpy.where(a>23)
Out[6]:
(array([ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122]),)
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users