|
From: <ef...@us...> - 2008-07-22 18:00:51
|
Revision: 5810
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5810&view=rev
Author: efiring
Date: 2008-07-22 18:00:49 +0000 (Tue, 22 Jul 2008)
Log Message:
-----------
Cleanup in delete_masked_points
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/cbook.py
Modified: trunk/matplotlib/lib/matplotlib/cbook.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/cbook.py 2008-07-22 11:23:49 UTC (rev 5809)
+++ trunk/matplotlib/lib/matplotlib/cbook.py 2008-07-22 18:00:49 UTC (rev 5810)
@@ -1187,7 +1187,7 @@
Masks are obtained from all arguments of the correct length
in categories 1, 2, and 4; a point is bad if masked in a masked
array or if it is a nan or inf. No attempt is made to
- extract a mask from categories 2, 3, and 4 if *np.isfinite()*
+ extract a mask from categories 2, 3, and 4 if :meth:`np.isfinite`
does not yield a Boolean array.
All input arguments that are not passed unchanged are returned
@@ -1236,11 +1236,7 @@
if len(igood) < nrecs:
for i, x in enumerate(margs):
if seqlist[i]:
- if (hasattr(x, 'get_compressed_copy')):
- compressed_x = x.get_compressed_copy(~mask)
- else:
- compressed_x = x.take(igood, axis=0)
- margs[i] = compressed_x
+ margs[i] = x.take(igood, axis=0)
for i, x in enumerate(margs):
if seqlist[i] and ma.isMA(x):
margs[i] = x.filled()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|