bfieldtools.thermal_noise.visualize_current_modes

bfieldtools.thermal_noise.visualize_current_modes(mesh, vl, Nmodes, scale, contours=True, colormap='bwr', dist=0.5)

Visualizes current modes up to Nmodes.

Parameters
mesh: Trimesh mesh object

The surface mesh

vl: Nvertices x Nvertices array

The normalized eddy-current modes vl[:,i]

Nmodes: int

Number of modes to be plotted

scale: float

Scaling factor

contours: boolean

If True, show contours

colormap: string

Which (matplotlib) colormap to use