uvisbox.Modules.SquidGlyphs.squid_glyphs_vis

Module Contents

uvisbox.Modules.SquidGlyphs.squid_glyphs_vis.visualize_squid_glyphs_2d(mesh_2d, ax=None)[source]

Render 2D squid glyph mesh with matplotlib.

Parameters:
  • mesh_2d (dict) – From squid_glyphs_2d_mesh()

  • ax (matplotlib.Axes, optional) – Existing axis to draw on

Returns:

ax – The axis with drawn glyphs

Return type:

matplotlib.Axes

uvisbox.Modules.SquidGlyphs.squid_glyphs_vis.visualize_squid_glyphs_3d(mesh_3d, point_values=None, show_edges=True, glyph_color='lightblue', cmap='RdBu_r', ax=None)[source]

Render 3D squid glyph mesh with pyvista.

Parameters:
  • mesh_3d (dict) – From squid_glyphs_3d_mesh()

  • point_values (numpy.ndarray, optional) – Override mesh point_values for coloring

  • show_edges (bool) – Show glyph edges (default: True)

  • glyph_color (str) – Solid color when no point_values (default: ‘lightblue’)

  • cmap (str) – Colormap for scalar coloring (default: ‘RdBu_r’)

  • ax (pyvista.Plotter, optional) – Existing plotter to use

Returns:

plotter – The plotter with drawn glyphs

Return type:

pyvista.Plotter