Skip to content

Commit

Permalink
docs(example): Fix RemoteSelection for trame v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed May 24, 2022
1 parent 60440ab commit 4c2ba6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/06_vtk/Applications/RemoteSelection/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Delta v1..v2 - https://github.com/Kitware/trame/commit/03f28bb0084490acabf218264b96a1dbb3a17f19
"""

import os
import pandas as pd

# Plotly/chart imports
Expand Down Expand Up @@ -225,7 +224,7 @@ def on_box_selection_change(selection):
actor.GetProperty().SetOpacity(0.5)

# Update scatter plot with selection
update_figure()
update_figure(**state.to_dict())

# Update 3D view
ctrl.view_update()
Expand Down Expand Up @@ -326,7 +325,6 @@ def on_box_selection_change(selection):
with vuetify.VCol(classes="pa-0"):
with trame.SizeObserver("figure_size"):
html_plot = plotly.Figure(
"figure",
selected=(
on_chart_selection,
"[$event?.points.map(({pointIndex}) => pointIndex)]",
Expand Down

0 comments on commit 4c2ba6d

Please sign in to comment.