Skip to content

Commit 5c5469f

Browse files
committed
use update instead of data argument
1 parent ad75ebb commit 5c5469f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plotly/widgets/graph_widget.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def plot(self, figure_or_data, validate=True):
308308
}
309309
self._handle_outgoing_message(message)
310310

311-
def restyle(self, data, indices=None):
311+
def restyle(self, update, indices=None):
312312
"""Update the style of existing traces in the Plotly graph.
313313
314314
Args:
@@ -408,7 +408,10 @@ def restyle(self, data, indices=None):
408408
```
409409
"""
410410
# TODO: Add flat traces to graph_objs
411-
message = {'task': 'restyle', 'update': data, 'graphId': self._graphId}
411+
message = {
412+
'task': 'restyle', 'update': update,
413+
'graphId': self._graphId
414+
}
412415
if indices:
413416
message['indices'] = indices
414417
self._handle_outgoing_message(message)

0 commit comments

Comments
 (0)