Skip to main content

show()

Displays the plot.

If a file was loaded (via filepath or set_file()), show() refreshes the scene in this order:

  1. Scalar field (set_scalar())
  2. Contours (set_contour())
  3. Vector glyphs (set_vector())
  4. Feature edges (set_feature_edges())
  5. 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()