EllipseArtist

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

Bases: PlotterArtist, PrimitiveArtist

Artist for COMPAS ellipses.

Parameters
  • ellipse (compas.geometry.Ellipse) – A COMPAS ellipse.

  • linewidth (float, optional) – Width of the ellipse boundary.

  • linestyle ({‘solid’, ‘dotted’, ‘dashed’, ‘dashdot’}, optional) – Style of the ellipse boundary.

  • facecolor (tuple[float ,float, float], optional) – Color of the interior of the ellipse.

  • edgecolor (tuple[float, float, float], optional) – Color of the boundary of the ellipse.

  • fill (bool, optional) – If True, draw the interior of the ellipse.

  • alpha (float, optional) – Transparency of the ellipse.

  • zorder (int, optional) – Stacking order of the ellipse on the canvas.

  • **kwargs (dict, optional) – Additional keyword arguments. See compas_plotters.artists.PlotterArtist and compas.artists.PrimitiveArtist for more info.

Attributes

ellipse (compas.geometry.Ellipse) – The ellipse associated with the artist.

Methods

draw

Draw the ellipse on the plotter canvas.

redraw

Update the ellipse 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.