@@ -972,7 +972,8 @@ def draw_all(self):
972
972
self ._process_values ()
973
973
self ._find_range ()
974
974
X , Y = self ._mesh ()
975
- C = self ._values [:, np .newaxis ]
975
+ C = np .array (X * 256 * 256 + Y * 256 , dtype = 'int64' )
976
+ # C = self._values[:, np.newaxis]
976
977
self ._config_axes (X , Y )
977
978
if self .filled :
978
979
self ._add_solids (X , Y , C )
@@ -1101,21 +1102,6 @@ def set_label(self, xlabel, ylabel, **kw):
1101
1102
self ._labelkw = kw
1102
1103
self ._set_label ()
1103
1104
1104
- def _outline (self , X , Y ):
1105
- '''
1106
- Return *x*, *y* arrays of colorbar bounding polygon,
1107
- taking orientation into account.
1108
- '''
1109
- N = X .shape [0 ]
1110
- ii = [0 , 1 , N - 2 , N - 1 , 2 * N - 1 , 2 * N - 2 , N + 1 , N , 0 ]
1111
- x = np .take (np .ravel (np .transpose (X )), ii )
1112
- y = np .take (np .ravel (np .transpose (Y )), ii )
1113
- x = x .reshape ((len (x ), 1 ))
1114
- y = y .reshape ((len (y ), 1 ))
1115
- # if self.orientation == 'horizontal':
1116
- # return np.hstack((y, x))
1117
- return np .hstack ((x , y ))
1118
-
1119
1105
def _edges (self , X , Y ):
1120
1106
'''
1121
1107
Return the separator line segments; helper for _add_solids.
@@ -1414,11 +1400,11 @@ def _mesh(self):
1414
1400
transposition for a horizontal colorbar are done outside
1415
1401
this function.
1416
1402
'''
1417
- x = np .array ([0.0 , 1.0 ])
1418
1403
if self .spacing == 'uniform' :
1419
- y = self ._uniform_y (self ._central_N ())
1404
+ x = y = self ._uniform_y (self ._central_N ())
1420
1405
else :
1421
- y = self ._proportional_y ()
1406
+ x = y = self ._proportional_y ()
1407
+ self ._x = x
1422
1408
self ._y = y
1423
1409
X , Y = np .meshgrid (x , y )
1424
1410
if self ._extend_lower () and not self .extendrect :
0 commit comments