Skip to content

epm_slider

EpmSlider

Bases: Slider

Slider widget for visualizing phase mapping and cycles in EPM data.

This widget allows interactive visualization of phasefields, critical points (CBs), forks, and wavefronts.

epm = epm instance-attribute

__init__(epm)

Initialize the EpmSlider with optional visualization layers.

Parameters:

Name Type Description Default
epm ExtendedPhaseMapping

ExtendedPhaseMapping object containing phasefield and cycle data.

required

add_critical_cycles(name='CBs', scalar_column='top_charge', cmap='bwr', line_width=7.5, clim=(-1, 1), **kwargs)

Add critical cycles (CBs) to the slider visualization.

add_noncritical_cycles(name='forks', color='white', line_width=7.5, **kwargs)

Add non-critical cycles (forks) to the slider visualization.

add_phasefield(name='phasefield', interpolate_before_map=False, clim=(-np.pi, np.pi), cmap='twilight', **kwargs)

Add the phasefield scalar field to the slider.

add_points(points, scalars, label, position, name=None, **kwargs)

Add a point cloud with a checkbox toggle.

add_wavefronts(name='wavefronts', color='green', line_width=7.5, **kwargs)

Add wavefront cycles to the slider visualization.

toggle(name, flag)

Toggle actor visibility.