Revision: 7055
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7055&view=rev
Author: jdh2358
Date: 2009-04-19 14:29:07 +0000 (Sun, 19 Apr 2009)
Log Message:
-----------
Merged revisions 7054 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_98_5_maint
........
r7054 | jdh2358 | 2009-04-19 09:26:12 -0500 (Sun, 19 Apr 2009) | 1 line
force a copy of the colormap input data
........
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/colors.py
Property Changed:
----------------
trunk/matplotlib/
Property changes on: trunk/matplotlib
___________________________________________________________________
Modified: svnmerge-integrated
- /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7042
+ /branches/v0_91_maint:1-6428 /branches/v0_98_5_maint:1-7054
Modified: trunk/matplotlib/lib/matplotlib/colors.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/colors.py 2009-04-19 14:26:12 UTC (rev
7054)
+++ trunk/matplotlib/lib/matplotlib/colors.py 2009-04-19 14:29:07 UTC (rev
7055)
@@ -483,7 +483,9 @@
xa = np.array([X])
else:
vtype = 'array'
- xma = ma.asarray(X)
+ # force a copy here -- the ma.array and filled functions
+ # do force a cop of the data by default - JDH
+ xma = ma.array(X, copy=True)
xa = xma.filled(0)
mask_bad = ma.getmask(xma)
if xa.dtype.char in np.typecodes['Float']:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins