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

Skip to content

Commit a6be274

Browse files
author
bakes
committed
Added norm=mcolors.NoNorm() to fix the bug
1 parent 8244201 commit a6be274

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7662,7 +7662,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None,
76627662
if 'interpolation' in kwargs:
76637663
raise TypeError(
76647664
"spy() got an unexpected keyword argument 'interpolation'")
7665-
ret = self.imshow(mask, interpolation='nearest', aspect=aspect,
7665+
ret = self.imshow(mask, norm=mcolors.NoNorm(), interpolation='nearest', aspect=aspect,
76667666
origin=origin, **kwargs)
76677667
else:
76687668
if hasattr(Z, 'tocoo'):

0 commit comments

Comments
 (0)