|
3 | 3 |
|
4 | 4 | import numpy as npy |
5 | 5 |
|
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 |
8 | 7 |
|
9 | 8 | import matplotlib |
10 | 9 | rcParams = matplotlib.rcParams |
@@ -1183,20 +1182,20 @@ def _process_unit_info(self, xdata=None, ydata=None, kwargs=None): |
1183 | 1182 |
|
1184 | 1183 | if xdata is not None: |
1185 | 1184 | self.xaxis.update_units(xdata) |
1186 | | - |
| 1185 | + |
1187 | 1186 | if ydata is not None: |
1188 | 1187 | self.yaxis.update_units(ydata) |
1189 | | - |
| 1188 | + |
1190 | 1189 | # process kwargs 2nd since these will override default units |
1191 | 1190 | if kwargs is not None: |
1192 | 1191 | xunits = kwargs.pop( 'xunits', self.xaxis.units) |
1193 | 1192 | if xunits!=self.xaxis.units: |
1194 | 1193 | self.xaxis.set_units(xunits) |
1195 | | - |
| 1194 | + |
1196 | 1195 | yunits = kwargs.pop('yunits', self.yaxis.units) |
1197 | 1196 | if yunits!=self.yaxis.units: |
1198 | 1197 | self.yaxis.set_units(yunits) |
1199 | | - |
| 1198 | + |
1200 | 1199 | def in_axes(self, xwin, ywin): |
1201 | 1200 | 'return True is the point xwin, ywin (display coords) are in the Axes' |
1202 | 1201 | return self.bbox.contains(xwin, ywin) |
@@ -1261,7 +1260,7 @@ def draw(self, renderer=None, inframe=False): |
1261 | 1260 | renderer.open_group('axes') |
1262 | 1261 | self.apply_aspect() |
1263 | 1262 | self.transData.freeze() # eval the lazy objects |
1264 | | - self.transAxes.freeze() |
| 1263 | + self.transAxes.freeze() |
1265 | 1264 | if self.axison and self._frameon: self.axesPatch.draw(renderer) |
1266 | 1265 | artists = [] |
1267 | 1266 |
|
@@ -4521,7 +4520,7 @@ def pcolor(self, *args, **kwargs): |
4521 | 4520 |
|
4522 | 4521 | newaxis = npy.newaxis |
4523 | 4522 | compress = npy.compress |
4524 | | - |
| 4523 | + |
4525 | 4524 | ravelmask = (mask==0).ravel() |
4526 | 4525 | X1 = compress(ravelmask, ma.filled(X[0:-1,0:-1]).ravel()) |
4527 | 4526 | Y1 = compress(ravelmask, ma.filled(Y[0:-1,0:-1]).ravel()) |
|
0 commit comments