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

Method plot

phi/vis/_dash/_plotly_plots.py:711–724  ·  view source on GitHub ↗
(self,
             data: Field,
             figure,
             subplot,
             space: Box,
             min_val: float,
             max_val: float,
             show_color_bar: bool,
             color: Tensor,
             alpha: Tensor,
             err: Tensor)

Source from the content-addressed store, hash-verified

709 return isinstance(data.geometry, BSplineSheet) and data.spatial_rank == 3
710
711 def plot(self,
712 data: Field,
713 figure,
714 subplot,
715 space: Box,
716 min_val: float,
717 max_val: float,
718 show_color_bar: bool,
719 color: Tensor,
720 alpha: Tensor,
721 err: Tensor):
722 surface = data.geometry._sampled_grid[1]
723 Scatter3D().plot(to_field(surface), figure, subplot, space, min_val, max_val, show_color_bar, color, alpha, err)
724 # Scatter3D().plot(to_field(data.geometry.points), figure, subplot, space, min_val, max_val, show_color_bar, color, alpha, err)
725
726
727def _get_range(bounds: Box, index: int):

Callers

nothing calls this directly

Calls 3

to_fieldFunction · 0.90
Scatter3DClass · 0.85
plotMethod · 0.45

Tested by

no test coverage detected