You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/user_guide/migration.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Here is an example of how to do this:
21
21
- PyVista code:
22
22
23
23
.. code-block:: python
24
-
24
+
25
25
import pyvista as pv
26
26
27
27
# Create a pyvista mesh
@@ -93,7 +93,7 @@ With this, you can use the Ansys Tools Visualization Interface plotter to visual
93
93
Customizing the PyVista backend
94
94
-------------------------------
95
95
96
-
You can customize the backend of the Ansys Tools Visualization Interface plotter to enable or disable certain functionalities. For example,
96
+
You can customize the backend of the Ansys Tools Visualization Interface plotter to enable or disable certain functionalities. For example,
97
97
if you want to enable picking, you can do it as follows:
98
98
99
99
.. code-block:: python
@@ -112,7 +112,7 @@ if you want to enable picking, you can do it as follows:
112
112
# Show the plotter
113
113
pl.show()
114
114
115
-
If you want to go further and customize the backend even more, you can create your own backend by inheriting from the ``PyVistaBackendInterface`` class
115
+
If you want to go further and customize the backend even more, you can create your own backend by inheriting from the ``PyVistaBackendInterface`` class
116
116
and implementing the required methods. You can find more information about this in the backend documentation:
117
117
118
118
.. code-block:: python
@@ -158,12 +158,12 @@ although this may break existing functionality. You can find more information ab
158
158
159
159
Customize the picker or hover behavior
160
160
--------------------------------------
161
-
You can customize the picker of the Ansys Tools Visualization Interface plotter to decide what happens when an object is picked or hovered.
161
+
You can customize the picker of the Ansys Tools Visualization Interface plotter to decide what happens when an object is picked or hovered.
162
162
For example, if you want to print the name of the picked object, you can do it as described in the custom picker example.
163
163
164
164
Using PyVista Qt backend
165
165
------------------------
166
-
You can use the PyVista Qt backend with the Ansys Tools Visualization Interface plotter. To do this, you need to set the PyVista backend to Qt
166
+
You can use the PyVista Qt backend with the Ansys Tools Visualization Interface plotter. To do this, you need to set the PyVista backend to Qt
167
167
before creating the plotter. Here is an example of how to do this:
168
168
169
169
.. code-block:: python
@@ -175,7 +175,7 @@ before creating the plotter. Here is an example of how to do this:
175
175
pl.backend.enable_widgets()
176
176
pv_backend.scene.show()
177
177
178
-
With this, you can integrate the plotter into a PyQt or PySide application by disabling ``show_qt`` parameter.
178
+
With this, you can integrate the plotter into a PyQt or PySide application by disabling ``show_qt`` parameter.
179
179
You can find more information about this in the `PyVista documentation <https://qtdocs.pyvista.org/>`_.
0 commit comments