PolylineArtist
- class compas_plotters.artists.PolylineArtist(item, **kwargs)[source]
Bases:
PlotterArtist
,PrimitiveArtist
Artist for COMPAS polylines.
- Parameters
polyline (
Polyline
) – A COMPAS polyline.linewidth (float, optional) – Width of the polyline edge lines.
linestyle ({‘solid’, ‘dotted’, ‘dashed’, ‘dashdot’}, optional) – Style of the line.
facecolor (tuple[float, float, float], optional) – Color of the interior face of the polyline.
edgecolor (tuple[float, float, float], optional) – Color of the boundary of the polyline.
zorder (int, optional) – Stacking order of the polyline on the canvas.
**kwargs (dict, optional) – Additional keyword arguments. See
PlotterArtist
andPrimitiveArtist
for more info.
- Attributes
polyline (
Polyline
) – The line associated with the artist.
Methods
Draw the polyline.
Update the polyline using the current geometry and visualization settings.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
Drawing method for drawing an entire collection of objects.
Register an artist type to a data type.
Update the data limits of the plotting axes using the visualization data.
Compute the bounds of the current view.