Skip to content

Commit 5528825

Browse files
committed
Working on adding colorscale
1 parent a1c0a9c commit 5528825

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plotly/tools.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3434,6 +3434,13 @@ def dist_origin(x, y, z):
34343434
z=aspectratio['z']),
34353435
)
34363436
)
3437+
3438+
#data1[0]['colorscale'] = [[0, colormap[0]], [1, colormap[1]]]
3439+
#data1[0]['marker'] = {'colorscale': [[0, 'rgb(255, 0, 0)'], [1, 'rgb(5, 5, 255)']],
3440+
# 'showscale': True}
3441+
data1[0]['colorscale'] = [[0, 'rgb(255, 0, 0)'], [1, 'rgb(5, 5, 255)']]
3442+
data1[0]['showscale'] = True
3443+
34373444
return graph_objs.Figure(data=data1, layout=layout)
34383445

34393446
@staticmethod

0 commit comments

Comments
 (0)