f8f8e239c2ad67339233b9180da7463e96279722,ggplot/components/colors.py,,assign_continuous_colors,#Any#Any#Any#Any#Any#Any#,96

Before Change


    
    _mcolumn = ":::%s_mapping:::" % aes_name
    values = data[color_col].tolist()
    values = [(i - min(values)) / (max(values) - min(values)) for i in values]
    color_mapping = gg.colormap(values)[::, :3]
    data[_mcolumn] = [rgb2hex(value) for value in color_mapping]
    key_colors = gg.colormap(indices)[::, :3]
    key_colors = [rgb2hex(value) for value in key_colors]

After Change


        Documented in `components.legend`
    
    _mcolumn = ":::%s_mapping:::" % aes_name
    min_val = data[color_col].min()
    max_val = data[color_col].min()
    values = (data[color_col] - min_val) / (max_val - min_val)
    values = values.tolist()
    color_mapping = gg.colormap(values)[::, :3]
    data[_mcolumn] = [rgb2hex(value) for value in color_mapping]
    key_colors = gg.colormap(indices)[::, :3]
    key_colors = [rgb2hex(value) for value in key_colors]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: has2k1/plotnine
Commit Name: f8f8e239c2ad67339233b9180da7463e96279722
Time: 2014-07-17
Author: lamp.greg@gmail.com
File Name: ggplot/components/colors.py
Class Name:
Method Name: assign_continuous_colors


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/model_inference.py
Class Name:
Method Name: post_process


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/image_preprocess.py
Class Name:
Method Name: resize