show()
Displays the plot.
If a file was loaded (via filepath or set_file()), show() refreshes the scene in this order:
- Scalar field (
set_scalar()) - Contours (
set_contour()) - Vector glyphs (
set_vector()) - Feature edges (
set_feature_edges()) - Camera reset
Returns
- Desktop mode (
notebook=False):None(starts the Qt event loop; blocking). - Notebook mode (
notebook=True): returns the PyVista notebook display output/widget.
Example
from pyemsi import examples, Plotter
file_path = examples.transient_path() # Or path to .pvd file
plt = Plotter(file_path)
plt.set_scalar("B-Mag (T)")
plt.show()