v3d.make_fig#

visu3d.make_fig(*data: visu3d.plotly.fig_utils.Visualizable | etils.enp.array_types.typing.Array | Any | List[visu3d.plotly.fig_utils.Visualizable | etils.enp.array_types.typing.Array | Any], show_zero: bool = Ellipsis, num_samples_point3d: int | None = Ellipsis, num_samples_point2d: int | None = Ellipsis, num_samples_ray: int | None = Ellipsis, cam_scale: float = Ellipsis, **fig_config_kwargs: Any) plotly.graph_objs._figure.Figure[source]#

Returns the figure from the given data.

v3d.make_fig([obj0, obj1])  # Or `v3d.make_fig(obj0, obj1)`

The figure will use v3d.fig_config global figure configuration. Individual config options can be overwritten here through kwargs.

Parameters:
  • *data – The data to plot. Either a v3d.Vizualizable or a np.array point cloud, or a list of the above.

  • show_zero – Whether to show the (0, 0, 0) origin, otherwise the plot x, y, z axis adapt to the data.

  • num_samples_point3d – Max number of v3d.Point3d displayed by default ( None for all)

  • num_samples_point2d – Max number of v3d.Point2d displayed by default ( None for all)

  • num_samples_ray – Max number of v3d.Ray displayed by default (None for all)

  • cam_scale – Scale of the cameras.

  • **fig_config_kwargs – Additional figure options (see v3d.fig_config)

Returns:

The plotly go.Figure, can be further modified.