File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
examples/00-basic-pyvista-examples Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -185,8 +185,6 @@ def picked_dict(self) -> dict:
185185from ansys .tools .visualization_interface .backends .pyvista import PyVistaBackend
186186pl_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
218216mesh_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()
You can’t perform that action at this time.
0 commit comments