PlotterArtist

class compas_plotters.artists.PlotterArtist(item, **kwargs)[source]

Bases: Artist

Base class for all plotter artists.

Attributes
  • plotter (Plotter, read-only) – A plotter instance.

  • data (list[[float, float]]) – The geometrical data points visualized with the plotter.

Methods

update_data

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

viewbox

Compute the bounds of the current view.

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

The main drawing method.

draw_collection

Drawing method for drawing an entire collection of objects.

redraw

Redraw the view.

register

Register an artist type to a data type.