96c26bd09d02bb9cddbc083c75ba2ea65b5d377a,plantcv/plantcv/color_palette.py,,color_palette,#Any#,6
Before Change
(78, 0, 255), (72, 0, 255), (66, 0, 255), (60, 0, 255), (54, 0, 255), (48, 0, 255), (42, 0, 255), (36, 0, 255),
(30, 0, 255), (24, 0, 255), (18, 0, 255), (12, 0, 255), (6, 0, 255))
if num == 1:
color = rainbow[randrange(0, 255)]
return [color]
else:
dist = int(len(rainbow) / num)
colors = []
index = 0
for i in range(1, num + 1):
colors.append(rainbow[index])
index += dist
return colors
After Change
return params.saved_color_scale
else:
// Retrieve the matplotlib colormap
cmap = plt.get_cmap(params.color_scale)
// Get num evenly spaced colors
colors = cmap(np.linspace(0, 1, num), bytes=True)
colors = colors[:, 0:3].tolist()
// colors are sequential, if params.color_sequence is random then shuffle the colors
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: danforthcenter/plantcv
Commit Name: 96c26bd09d02bb9cddbc083c75ba2ea65b5d377a
Time: 2020-07-16
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/color_palette.py
Class Name:
Method Name: color_palette
Project Name: deepmipt/DeepPavlov
Commit Name: 6d3e4bdc22cc89fb7ecf188ccf0479632012026f
Time: 2018-04-18
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/check_binary_mask.py
Class Name:
Method Name: get_graph_and_plot
Project Name: deepmipt/DeepPavlov
Commit Name: 4fca544205a55010e8959bb760aece5be80dc3a5
Time: 2018-06-26
Author: dilyara.rimovna@gmail.com
File Name: deeppavlov/models/evolution/check_binary_mask.py
Class Name:
Method Name: get_graph_and_plot