plotPolygon¶
-
pyslm.visualise.
plotPolygon
(polygons, zPos=0.0, lineColor='k', lineWidth=0.7, fillColor='r', plot3D=False, plotFilled=False, handle=None)¶ Helper method for plotting polygons (numpy coordinates) and those composed of Python lists.
- Note:
Method cannot deal with complex polygon i.e. those with interiors due to limitation with Matplotlib
- Parameters:
polygons (
List
[Any
]) – A list of polygonszPos – The z position of the polygons if plot3D is enabled
lineColor (
Optional
[Any
]) – Line color used for matplotlib (optional)lineWidth (
Optional
[float
]) – Line width used for matplotlib (optional)fillColor (
Optional
[Any
]) – Fill color for the polygon if plotFilled is enabled (optional)plot3D (
Optional
[bool
]) – Plot the polygons in 3DplotFilled (
Optional
[bool
]) – Plot filledhandle (
Optional
[Tuple
[Figure
,Axes
]]) – A previous matplotlib (Figure, Axis) object
- Return type:
Tuple
[Figure
,Axes
]- Returns:
A tuple with the matplotlib (Figure, Axis)