reiinakano / scikit-plot

An intuitive library to add plotting functionality to scikit-learn objects.
MIT License
2.43k stars 284 forks source link

Deprecation of 'spectral' colormap in matplotlib #65

Closed emredjan closed 6 years ago

emredjan commented 6 years ago

Several plots in the metrics package trigger the matplotlib deprecation warning as they use the 'spectral' colormap by default.

skplt.metrics.plot_roc_curve(y_train, y_probas)
MatplotlibDeprecationWarning: The spectral and spectral_r colormap was deprecated in version 2.0. 
Use nipy_spectral and nipy_spectral_r instead.

Needs to be changed to 'nipy_spectral'

reiinakano commented 6 years ago

Fixed by #66