compas_plotters.GeometryPlotter
- class compas_plotters.GeometryPlotter(view=[(- 8, 16), (- 5, 10)], figsize=(8, 5), dpi=100, bgcolor=(1.0, 1.0, 1.0), show_axes=False)[source]
Bases:
objectPlotter for the visualisation of COMPAS geometry.
- Parameters
view (tuple, optional) – The area of the axes that should be zoomed into view. DEfault is
([-10, 10], [-3, 10]).figsize (tuple, optional) – The size of the figure in inches. Default is
(8, 5)
Examples
Notes
Methods
add(item[, artist])add_as(item, artist_type, **kwargs)add_from_list(items, **kwargs)draw([pause])find(item)pause(pause)redraw([pause])Updates and pauses the plot.
register_listener(listener)Register a listener for pick events.
save(filepath, **kwargs)Saves the plot to a file.
show()Displays the plot.
zoom_extents()Attributes
artistslist of
compas_plotters.artists.ArtistaxesReturns the axes subplot matplotlib object.
bgcolorReturns the background color.
canvasReturns the canvas of the figure instance.
figureReturns the matplotlib figure instance.
titleReturns the title of the plot.
viewboxThe area of the axes that is zoomed into view.