Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7309ae

Browse files
author
bakes
committed
Changed behavior to only set norm=mcolors.NoNorm() when no norm is passed
2 parents 94f7e68 + 4e1e61e commit e7309ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7664,8 +7664,9 @@ def spy(self, Z, precision=0, marker=None, markersize=None,
76647664
"spy() got an unexpected keyword argument 'interpolation'")
76657665
if 'norm' not in kwargs:
76667666
kwargs['norm'] = mcolors.NoNorm()
7667-
ret = self.imshow(mask, interpolation='nearest', aspect=aspect,
7668-
origin=origin, **kwargs)
7667+
ret = self.imshow(mask, interpolation='nearest',
7668+
aspect=aspect, origin=origin,
7669+
**kwargs)
76697670
else:
76707671
if hasattr(Z, 'tocoo'):
76717672
c = Z.tocoo()

0 commit comments

Comments
 (0)