Skip to content

Commit 3ece4cb

Browse files
authored
Updated __copy__ indentation
1 parent 82cccd0 commit 3ece4cb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/matplotlib/colors.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,14 @@ def __call__(self, X, alpha=None, bytes=False):
532532

533533
def __copy__(self):
534534
"""Create new object with the same class and update attributes
535-
If object is initialized, copy the elements of _lut list
536-
"""
537-
cls = self.__class__
538-
newCMapObj = cls.__new__(cls)
539-
newCMapObj.__dict__.update(self.__dict__)
540-
if self._isinit:
541-
newCMapObj._lut = np.copy(self._lut)
542-
return newCMapObj
535+
If object is initialized, copy the elements of _lut list
536+
"""
537+
cls = self.__class__
538+
newCMapObj = cls.__new__(cls)
539+
newCMapObj.__dict__.update(self.__dict__)
540+
if self._isinit:
541+
newCMapObj._lut = np.copy(self._lut)
542+
return newCMapObj
543543

544544
def set_bad(self, color='k', alpha=None):
545545
"""Set color to be used for masked values.

0 commit comments

Comments
 (0)