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 singleLayer
containing a set of variousLayerGeometry
objectszPos (
Optional
[float
]) – The position of the layer when using the 3D plot (optional)plotContours (
Optional
[bool
]) – Plots the inner hatch scan vectors. Defaults to TrueplotHatches (
Optional
[bool
]) – Plots the hatch scan vectorsplotPoints (
Optional
[bool
]) – Plots point exposuresplot3D (
Optional
[bool
]) – Plots the layer in 3DplotArrows (
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 datasetsplotOrderLine (
Optional
[bool
]) – Plots an additional line showing the order of vector scanningplotColorbar (
Optional
[bool
]) – Plots a colorbar for the hatch sectionindex (
Optional
[str
]) – A string defining the property to plot the scan vector geometry colours againsthandle (
Optional
[Tuple
[Figure
,Axes
]]) – Matplotlib handle to re-use
- Return type:
Tuple
[Figure
,Axes
]