fixed rounding bug and updated reference images

This commit is contained in:
Philip Eisenlohr 2020-08-05 10:44:10 -04:00
parent e4103564a9
commit ce00371f52
3 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ class Colormap(mpl.colors.ListedColormap):
return Image.fromarray(
(np.dstack((
self.colors[(np.round(np.clip((field-lo)/(hi-lo),0.0,1.0))*(N-1)).astype(np.uint16),:3],
self.colors[(np.round(np.clip((field-lo)/(hi-lo),0.0,1.0)*(N-1))).astype(np.uint16),:3],
mask.astype(float)
)
)*255

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 B

After

Width:  |  Height:  |  Size: 138 B