pyrobopath.toolpath.visualization.matplotlib_backend.visualize_toolpath_projection#

pyrobopath.toolpath.visualization.matplotlib_backend.visualize_toolpath_projection(toolpath: Toolpath, show=True)[source]#

Visualize a 2D projection of the toolpath with an interactive layer slider.

Projects each contour in the toolpath onto the XY plane and allows the user to browse different Z-height layers using a vertical slider. Each tool is assigned a distinct color for visual differentiation.

Parameters:
  • toolpath (Toolpath) – The toolpath object containing layered contours.

  • show (bool, optional) – Controls whether the figure is displayed immediately. Defaults to True.

Returns:

  • fig (matplotlib.figure.Figure) – The matplotlib figure object containing the plot.

  • ax (matplotlib.axes._subplots.Axes3DSubplot) – The 3D axes on which the toolpath is drawn.