Skip to content

Commit c24b374

Browse files
committed
Removed commented out code and removed brackets from 'if colors[index] == ','...' line in _unlabel_rgb
1 parent 303385d commit c24b374

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

plotly/tools.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,12 +3186,6 @@ def _scatterplot_theme(dataframe, headers, diag, size, height,
31863186
foo, FigureFactory._label_rgb
31873187
)
31883188

3189-
3190-
#foo = FigureFactory._unlabel_rgb(colormap)
3191-
#foo = FigureFactory._n_colors(foo[0],
3192-
# foo[1],
3193-
# len(intervals))
3194-
#theme = FigureFactory._label_rgb(foo)
31953189
if colormap_type == 'cat':
31963190
# leave list of colors the same way
31973191
theme = colormap
@@ -3698,7 +3692,7 @@ def _unlabel_rgb(colors):
36983692
float(colors[index])
36993693
str_vals = str_vals + colors[index]
37003694
except ValueError:
3701-
if (colors[index] == ',') or (colors[index] == '.'):
3695+
if colors[index] == ',' or colors[index] == '.':
37023696
str_vals = str_vals + colors[index]
37033697

37043698
str_vals = str_vals + ','

0 commit comments

Comments
 (0)