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

Skip to content

Commit bb85590

Browse files
committed
Add fix for set_cmap in NonUniformImage
1 parent 613eb75 commit bb85590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def set_norm(self, norm):
852852
def set_cmap(self, cmap):
853853
if self._A is not None:
854854
raise RuntimeError('Cannot change colors after loading data')
855-
super(NonUniformImage, self).set_cmap(self, cmap)
855+
super(NonUniformImage, self).set_cmap(cmap)
856856

857857

858858
class PcolorImage(martist.Artist, cm.ScalarMappable):

0 commit comments

Comments
 (0)