pointcloudset.plot.pointcloud module

Functions for plotting frames. Used mainly by pointcloudset.pointcloud.PointCloud.plot() but could also be used on its own.

pointcloudset.plot.pointcloud.plot_overlay(fig, pointcloud, overlay: dict, **kwargs)

Meta function to overlay the plot with other plots. Used in the main plot function. Not for standalone use.

Parameters
  • fig (plotly.graph_objects.Figure) – The original plot.

  • pointcloud (PointCloud) – The original pointcloud.

  • overlay (dict) – A dict with objects to overlay. For example overlay={“Cluster 1”: cluster1, “plane1”: plane_model} The name of the entry is used in tooltips and the value can either be a PointCloud or a model of a plane as numpy.ndarray [a,b,c,d] of a plane. Uses the plane equation a x + b y + c z + d = 0.

Raises

ValueError – If the overlay value is wrong.

Returns

Plot with all overlays.

Return type

plotly.graph_objects.Figure