MCPcopy
hub / github.com/tum-pbs/PhiFlow / plot_single_material

Method plot_single_material

phi/vis/_dash/_plotly_plots.py:698–702  ·  view source on GitHub ↗
(data: Field, color, alpha: float)

Source from the content-addressed store, hash-verified

696 alpha: Tensor,
697 err: Tensor):
698 def plot_single_material(data: Field, color, alpha: float):
699 with math.NUMPY:
700 surf_mesh = geom.surface_mesh(data.geometry)
701 mesh_data = Field(surf_mesh, math.NAN, 0)
702 SurfaceMesh3D().plot(mesh_data, figure, subplot, space, min_val, max_val, show_color_bar, color, alpha, err)
703 math.map(plot_single_material, data, color, alpha, dims=channel(data.geometry) - 'vector', unwrap_scalars=False)
704
705

Callers

nothing calls this directly

Calls 4

FieldClass · 0.90
SurfaceMesh3DClass · 0.85
surface_meshMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected