How to convert a NumPy array to PIL image applying matplotlib colormap How to convert a NumPy array to PIL image applying matplotlib colormap numpy numpy