File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
examples/00-basic-pyvista-examples
src/ansys/tools/visualization_interface/backends/pyvista Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4949# pl = Plotter(backend=pv_backend)
5050# pl.plot(cube)
5151# pl.backend.enable_widgets()
52- # pl .show()
52+ # pv_backend.scene .show()
5353
5454
5555#####################
8585# pv_backend.enable_widgets()
8686#
8787# # You can use this plotter in a Qt application
88- # pl = pv_backend.pv_interface. scene
88+ # pl = pv_backend.scene
Original file line number Diff line number Diff line change @@ -174,6 +174,11 @@ def pv_interface(self) -> PyVistaInterface:
174174 """PyVista interface."""
175175 return self ._pl
176176
177+ @property
178+ def scene (self ) -> pv .Plotter :
179+ """PyVista scene."""
180+ return self ._pl .scene
181+
177182 def enable_widgets (self ):
178183 """Enable the widgets for the plotter."""
179184 # Create Plotter widgets
You can’t perform that action at this time.
0 commit comments