0d2248d0ad58a53b148b9070f5a7deeead1d4b8e,Python/phate/plot.py,,_auto_params,#,38

Before Change


        if discrete:
            c, labels = pd.factorize(c)
            if cmap is None and len(np.unique(c)) <= 10:
                c = mpl.cm.tab10(np.linspace(0, 1, 10))[c]
                cmap = None
            else:
                cmap = "tab20"

After Change


            if cmap is None and len(np.unique(c)) <= 10:
                cmap = mpl.colors.ListedColormap(
                    mpl.cm.tab10.colors[:len(np.unique(c))])
            elif cmap is None:
                cmap = "tab20"
        else:
            labels = None
            if cmap is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: KrishnaswamyLab/PHATE
Commit Name: 0d2248d0ad58a53b148b9070f5a7deeead1d4b8e
Time: 2018-06-25
Author: scottgigante@gmail.com
File Name: Python/phate/plot.py
Class Name:
Method Name: _auto_params


Project Name: adalca/neuron
Commit Name: cc92919f6944f6e33ae0a324ecbb85a150c593d6
Time: 2020-06-01
Author: adalca@mit.edu
File Name: neuron/vae_tools.py
Class Name:
Method Name: latent_stats_plots


Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 8ff81bf47b897cb714839245301c207c1d13c24c
Time: 2020-04-07
Author: utku.ozbulak@gmail.com
File Name: src/generate_class_specific_samples.py
Class Name: ClassSpecificImageGeneration
Method Name: generate