Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abcd40d

Browse files
committed
Fixed masked array import
svn path=/trunk/matplotlib/; revision=3524
1 parent 7e0adbe commit abcd40d

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
import numpy as npy
55

6-
# IMPORT: Eric, do the right thing vis-a-vis the two MA packages
7-
import numerix.ma as ma
6+
import matplotlib.numerix.npyma as ma
87

98
import matplotlib
109
rcParams = matplotlib.rcParams
@@ -1183,20 +1182,20 @@ def _process_unit_info(self, xdata=None, ydata=None, kwargs=None):
11831182

11841183
if xdata is not None:
11851184
self.xaxis.update_units(xdata)
1186-
1185+
11871186
if ydata is not None:
11881187
self.yaxis.update_units(ydata)
1189-
1188+
11901189
# process kwargs 2nd since these will override default units
11911190
if kwargs is not None:
11921191
xunits = kwargs.pop( 'xunits', self.xaxis.units)
11931192
if xunits!=self.xaxis.units:
11941193
self.xaxis.set_units(xunits)
1195-
1194+
11961195
yunits = kwargs.pop('yunits', self.yaxis.units)
11971196
if yunits!=self.yaxis.units:
11981197
self.yaxis.set_units(yunits)
1199-
1198+
12001199
def in_axes(self, xwin, ywin):
12011200
'return True is the point xwin, ywin (display coords) are in the Axes'
12021201
return self.bbox.contains(xwin, ywin)
@@ -1261,7 +1260,7 @@ def draw(self, renderer=None, inframe=False):
12611260
renderer.open_group('axes')
12621261
self.apply_aspect()
12631262
self.transData.freeze() # eval the lazy objects
1264-
self.transAxes.freeze()
1263+
self.transAxes.freeze()
12651264
if self.axison and self._frameon: self.axesPatch.draw(renderer)
12661265
artists = []
12671266

@@ -4521,7 +4520,7 @@ def pcolor(self, *args, **kwargs):
45214520

45224521
newaxis = npy.newaxis
45234522
compress = npy.compress
4524-
4523+
45254524
ravelmask = (mask==0).ravel()
45264525
X1 = compress(ravelmask, ma.filled(X[0:-1,0:-1]).ravel())
45274526
Y1 = compress(ravelmask, ma.filled(Y[0:-1,0:-1]).ravel())

0 commit comments

Comments
 (0)