plot

pyslm.visualise.plot(layer, zPos=0, plotContours=True, plotHatches=True, plotPoints=True, plot3D=True, plotArrows=False, plotOrderLine=False, plotColorbar=False, index='', handle=None)

Plots the all the scan vectors (contours and hatches) and point exposures for each Layer Geometry in a Layer using Matplotlib. The Layer may be plotted in 3D by setting the plot3D parameter.

Parameters:
  • layer (Layer) – A single Layer containing a set of various LayerGeometry objects

  • zPos (Optional[float]) – The position of the layer when using the 3D plot (optional)

  • plotContours (Optional[bool]) – Plots the inner hatch scan vectors. Defaults to True

  • plotHatches (Optional[bool]) – Plots the hatch scan vectors

  • plotPoints (Optional[bool]) – Plots point exposures

  • plot3D (Optional[bool]) – Plots the layer in 3D

  • plotArrows (Optional[bool]) – Plot the direction of each scan vector. This reduces the plotting performance due to use of matplotlib annotations, should be disabled for large datasets

  • plotOrderLine (Optional[bool]) – Plots an additional line showing the order of vector scanning

  • plotColorbar (Optional[bool]) – Plots a colorbar for the hatch section

  • index (Optional[str]) – A string defining the property to plot the scan vector geometry colours against

  • handle (Optional[Tuple[Figure, Axes]]) – Matplotlib handle to re-use

Return type:

Tuple[Figure, Axes]