Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc48a18

Browse filesBrowse files
committed
Fix contents of moveTraces message
1 parent 18b51c2 commit bc48a18
Copy full SHA for bc48a18

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎packages/python/plotly/plotly/basedatatypes.py

Copy file name to clipboardExpand all lines: packages/python/plotly/plotly/basedatatypes.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,10 @@ def data(self, new_data):
642642
# ### Check whether a move is needed ###
643643
if not all([i1 == i2 for i1, i2 in zip(new_inds, current_inds)]):
644644

645+
# #### Save off index lists for moveTraces message ####
646+
msg_current_inds = current_inds
647+
msg_new_inds = new_inds
648+
645649
# #### Reorder trace elements ####
646650
# We do so in-place so we don't trigger traitlet property
647651
# serialization for the FigureWidget case
@@ -662,7 +666,7 @@ def data(self, new_data):
662666
self._data.insert(ni, trace_data)
663667

664668
# #### Update widget, if any ####
665-
self._send_moveTraces_msg(current_inds, new_inds)
669+
self._send_moveTraces_msg(msg_current_inds, msg_new_inds)
666670

667671
# ### Update data defaults ###
668672
# There is to front-end syncronization to worry about so this

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.