Skip to content

Commit b5feea7

Browse files
fix: Example
1 parent bc9a02d commit b5feea7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

examples/00-basic-pyvista-examples/custom_picker.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,6 @@ def picked_dict(self) -> dict:
185185
from ansys.tools.visualization_interface.backends.pyvista import PyVistaBackend
186186
pl_backend = PyVistaBackend(allow_picking=True, custom_picker=CustomPicker)
187187

188-
# Create the plotter with the custom backend
189-
pl = Plotter(backend=pl_backend)
190188

191189
#################################################
192190
# Create a custom object with a name to be picked
@@ -217,14 +215,11 @@ def name(self):
217215
# Create an instance
218216
mesh_object_cube = MeshObjectPlot(custom_cube, custom_cube.get_mesh())
219217

220-
##############################
221-
# Plot the custom object
222-
# ============================
223-
224-
pl.plot(mesh_object_cube)
225-
226-
227218
##################################################
228219
# Display the plotter and interact with the object
229220
# ================================================
230-
# ``pl.show()``
221+
# .. code-block:: python
222+
#
223+
# pl = Plotter(backend=pl_backend)
224+
# pl.plot(mesh_object_cube)
225+
# pl.show()

0 commit comments

Comments
 (0)