Plotter
- class compas_plotters.Plotter(*args, **kwargs)[source]
Bases:
objectPlotter for the visualization 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)
Attributes
artistslist of
compas_plotters.artists.PlotterArtistaxesReturns the axes subplot matplotlib object.
bgcolorReturns the background color.
canvasReturns the canvas of the figure instance.
figureReturns the matplotlib figure instance.
fontsizetitleReturns the title of the plot.
viewboxThe area of the axes that is zoomed into view.
Methods
Add a COMPAS geometry object or data structure to the plot.
Add a COMPAS geometry object or data structure using a specific artist type.
Add multiple COMPAS geometry objects and/or data structures from a list.
Draw all objects included in the plot.
Find a geometry object or data structure in the plot.
Method for decorating callback functions in dynamic plots.
Pause plotting during the specified interval.
Updates and pauses the plot.
Register a listener for pick events.
Saves the plot to a file.
Displays the plot.
Zoom the view to the bounding box of all objects.