reiinakano / scikit-plot

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

Problems with colours #46

Closed omarcr closed 7 years ago

omarcr commented 7 years ago

The following methods return wrong colour ranges for plotting:

skplt.plot_pca_2d_projection(pca, X, y) plt.show()

Returns a single colour for all classes.

skplt.plot_precision_recall_curve(y_true=y, y_probas=probas) plt.show()

Returns repetition of colours for large classes.

reiinakano commented 7 years ago

Hi @omarcr, thanks for bringing this to my attention. I guess this is a problem in Python 3. I'll look into it and fix it as soon as possible. Of course, you're free to submit a PR if you want to. Thanks!

omarcr commented 7 years ago

Thanks for taking care of this error reiinakano!