Currently format_as_image (https://github.com/TeamHG-Memex/eli5/pull/315) uses Pillow for array resizing with interpolation, and matplotlib for applying colormaps to grayscale arrays.
It would be good to investigate alternative dependencies for these tasks. matplotlib is only ever used for its colormaps, and perhaps interpolation could be done through pure numpy or scipy (though there may be problems with scipy interpolation https://github.com/scipy/scipy/issues/8210 ?)
Currently
format_as_image
(https://github.com/TeamHG-Memex/eli5/pull/315) usesPillow
for array resizing with interpolation, andmatplotlib
for applying colormaps to grayscale arrays.It would be good to investigate alternative dependencies for these tasks.
matplotlib
is only ever used for its colormaps, and perhaps interpolation could be done through purenumpy
orscipy
(though there may be problems with scipy interpolation https://github.com/scipy/scipy/issues/8210 ?)Other options include