PointArtist

class compas_plotters.artists.PointArtist(*args, **kwargs)[source]

Bases: PlotterArtist, PrimitiveArtist

Artist for COMPAS points.

Parameters
  • point (compas.geometry.Point) – A COMPAS point.

  • size (int, optional) – The size of the point.

  • facecolor (Color, optional) – Color of the interior of the point representing the point.

  • edgecolor (Color, optional) – Color of the boundary of the point representing the point.

  • zorder (int, optional) – Stacking order above the XY plane of the plotter canvas.

  • **kwargs (dict, optional) – Additional keyword arguments. See PlotterArtist or PrimitiveArtist.

Attributes
  • point (compas.geometry.Point) – The point associated with the artist.

  • size (float) – Size of the point, relative to the resolution of the plotter. size = self._size / self.plotter.dpi.

Methods

draw

Draw the circle.

redraw

Update the point using the current geometry and visualization settings.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear all objects from the view.

draw_collection

Drawing method for drawing an entire collection of objects.

register

Register an artist type to a data type.

update_data

Update the data limits of the plotting axes using the visualization data.

viewbox

Compute the bounds of the current view.