You wished you hadn't used jet when you saved that figure? Here is a quick fix!
- numpy
- imageio
- matplotlib
- scipy
Clone this repository and install using setup.py:
python setup.py develop --user
from imageio import imread, imwrite
from fix_your_jet import fix
example_fix = fix(imread('example.png'),
from_cmap='jet', to_cmap='RdBu_r',
threshold=100)
imwrite('example_fix.png', example_fix)