File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ def _mesh(self):
428
428
429
429
def _locate (self , x ):
430
430
'''
431
- Given a possible set of color date values, return the ones
431
+ Given a possible set of color data values, return the ones
432
432
within range, together with their corresponding colorbar
433
433
data coordinates.
434
434
'''
Original file line number Diff line number Diff line change @@ -628,9 +628,9 @@ def _contour_args(self, *args):
628
628
# + "with use of 'extend' kwarg")
629
629
self ._levels = list (self .levels )
630
630
if self .extend in ('both' , 'min' ):
631
- self ._levels .insert (0 , self .zmin - 1 )
631
+ self ._levels .insert (0 , min ( self .levels [ 0 ], self . zmin ) - 1 )
632
632
if self .extend in ('both' , 'max' ):
633
- self ._levels .append (self .zmax + 1 )
633
+ self ._levels .append (max ( self .levels [ - 1 ], self . zmax ) + 1 )
634
634
self ._levels = asarray (self ._levels )
635
635
self .vmin = amin (self .levels ) # alternative would be self.layers
636
636
self .vmax = amax (self .levels )
You can’t perform that action at this time.
0 commit comments