FormPlotter
- class compas_cem.plotters.FormPlotter(form_diagram, *args, **kwargs)[source]
Bases:
compas_plotters.networkplotter.NetworkPlotterA plotter tailored to draw form-related matters.
- Parameters
form_diagram (
compas_cem.diagrams.FormDiagram) – The form diagram to plot.
Methods
clear()Clears the network plotter edges and nodes.
clear_collection(collection)Clears a matplotlib collection object.
Clears the network object edges.
Clears the netwotk plotter nodes.
draw_arrows(arrows)Draws arrows on a 2D plot.
draw_arrows2(arrows)draw_edges(*args, **kwargs)Draws the edges of a
FormDiagram.draw_lines(lines)Draws lines on a 2D plot.
draw_loads([keys, scale, width, gap, tol])Draws the node loads in a
FormDiagramas scaled arrows.draw_nodes(*args, **kwargs)Draws the nodes of a
FormDiagram.draw_points(points)Draws points on a 2D plot.
draw_polygons(polygons)Draws polygons on a 2D plot.
draw_polylines(polylines)Draw polylines on a 2D plot.
draw_reactions([keys, scale, width, gap, tol])Draws the support reaction forces in a
FormDiagramas scaled arrows.draw_segments(segments[, color, width, ls])Draws additional line segments on a
FormDiagram.gifified(func, tempfolder, outfile[, pattern])Create a context for making animated gifs using a callback for updating the plot.
register_listener(listener)Register a listener for pick events.
save(filepath[, tight, autoscale, …])Saves the plot to a file.
save_gif(filepath, images[, delay, loop])Save a series of images as an animated gif.
show([autoscale])Displays the plot.
top()Bring the plotting window to the top.
update([pause])Updates and pauses the plot.
Updates the plotter edge collection based on the network.
update_linecollection(collection, segments)Updates a line collection.
update_nodes([radius])Updates the plotter node collection based on the network.
update_pointcollection(collection, centers)Updates the location and radii of a point collection.
update_polygoncollection(collection, polygons)