machine_learning_examples icon indicating copy to clipboard operation
machine_learning_examples copied to clipboard

Update logistic_visualize.py

Open FlorinAndrei opened this issue 2 years ago • 1 comments

With the current version of Matplotlib, I get white dots for the 0 class, which are hard to see.

This change uses the standard Matplotlib color palette for the classes, shifted by 1.

FlorinAndrei avatar Dec 07 '23 22:12 FlorinAndrei

To make it clear, this happens when using a custom style plt.style.use('seaborn-v0_8-whitegrid')

The change forces colors to be the same (drawn from the default palette) no matter what style you use.

FlorinAndrei avatar Dec 07 '23 22:12 FlorinAndrei