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

Skip to content

Commit e2c4219

Browse files
committed
Correct issue with Powernorm Clip
1 parent 571091b commit e2c4219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,8 @@ def __call__(self, value, clip=None):
11711171
res_mask = result.data < 0
11721172
if clip:
11731173
mask = ma.getmask(result)
1174-
val = ma.array(np.clip(result.filled(vmax), vmin, vmax),
1175-
mask=mask)
1174+
result = ma.array(np.clip(result.filled(vmax), vmin, vmax),
1175+
mask=mask)
11761176
resdat = result.data
11771177
resdat -= vmin
11781178
np.power(resdat, gamma, resdat)

0 commit comments

Comments
 (0)