@@ -625,24 +625,24 @@ def __call__(self, X, alpha=None, bytes=False):
625625 return rgba
626626
627627 def set_bad (self , color = 'k' , alpha = None ):
628- ''' Set color to be used for masked values.
629- '''
628+ """ Set color to be used for masked values.
629+ """
630630 self ._rgba_bad = colorConverter .to_rgba (color , alpha )
631631 if self ._isinit :
632632 self ._set_extremes ()
633633
634634 def set_under (self , color = 'k' , alpha = None ):
635- ''' Set color to be used for low out-of-range values.
635+ """ Set color to be used for low out-of-range values.
636636 Requires norm.clip = False
637- '''
637+ """
638638 self ._rgba_under = colorConverter .to_rgba (color , alpha )
639639 if self ._isinit :
640640 self ._set_extremes ()
641641
642642 def set_over (self , color = 'k' , alpha = None ):
643- ''' Set color to be used for high out-of-range values.
643+ """ Set color to be used for high out-of-range values.
644644 Requires norm.clip = False
645- '''
645+ """
646646 self ._rgba_over = colorConverter .to_rgba (color , alpha )
647647 if self ._isinit :
648648 self ._set_extremes ()
@@ -659,7 +659,7 @@ def _set_extremes(self):
659659 self ._lut [self ._i_bad ] = self ._rgba_bad
660660
661661 def _init (self ):
662- ''' Generate the lookup table, self._lut'''
662+ """ Generate the lookup table, self._lut"""
663663 raise NotImplementedError ("Abstract class only" )
664664
665665 def is_gray (self ):
@@ -945,9 +945,9 @@ def inverse(self, value):
945945 return vmin + value * (vmax - vmin )
946946
947947 def autoscale (self , A ):
948- '''
948+ """
949949 Set *vmin*, *vmax* to min, max of *A*.
950- '''
950+ """
951951 self .vmin = ma .min (A )
952952 self .vmax = ma .max (A )
953953
@@ -1016,9 +1016,9 @@ def inverse(self, value):
10161016 return vmin * pow ((vmax / vmin ), value )
10171017
10181018 def autoscale (self , A ):
1019- '''
1019+ """
10201020 Set *vmin*, *vmax* to min, max of *A*.
1021- '''
1021+ """
10221022 A = ma .masked_less_equal (A , 0 , copy = False )
10231023 self .vmin = ma .min (A )
10241024 self .vmax = ma .max (A )
@@ -1149,7 +1149,7 @@ def autoscale_None(self, A):
11491149
11501150
11511151class BoundaryNorm (Normalize ):
1152- '''
1152+ """
11531153 Generate a colormap index based on discrete intervals.
11541154
11551155 Unlike :class:`Normalize` or :class:`LogNorm`,
@@ -1160,9 +1160,9 @@ class BoundaryNorm(Normalize):
11601160 piece-wise linear interpolation, but using integers seems
11611161 simpler, and reduces the number of conversions back and forth
11621162 between integer and floating point.
1163- '''
1163+ """
11641164 def __init__ (self , boundaries , ncolors , clip = False ):
1165- '''
1165+ """
11661166 *boundaries*
11671167 a monotonically increasing sequence
11681168 *ncolors*
@@ -1179,7 +1179,7 @@ def __init__(self, boundaries, ncolors, clip=False):
11791179 Out-of-range values are mapped to -1 if low and ncolors
11801180 if high; these are converted to valid indices by
11811181 :meth:`Colormap.__call__` .
1182- '''
1182+ """
11831183 self .clip = clip
11841184 self .vmin = boundaries [0 ]
11851185 self .vmax = boundaries [- 1 ]
@@ -1217,11 +1217,11 @@ def inverse(self, value):
12171217
12181218
12191219class NoNorm (Normalize ):
1220- '''
1220+ """
12211221 Dummy replacement for Normalize, for the case where we
12221222 want to use indices directly in a
12231223 :class:`~matplotlib.cm.ScalarMappable` .
1224- '''
1224+ """
12251225 def __call__ (self , value , clip = None ):
12261226 return value
12271227
0 commit comments