fixed rounding bug and updated reference images
This commit is contained in:
parent
e4103564a9
commit
ce00371f52
|
@ -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 |
Loading…
Reference in New Issue