FormPlotter

class compas_cem.plotters.FormPlotter(form_diagram, *args, **kwargs)[source]

Bases: compas_plotters.networkplotter.NetworkPlotter

A plotter tailored to draw form-related matters.

Parameters

form_diagram (compas_cem.diagrams.FormDiagram) – The form diagram to plot.

Methods

draw_edges

Draws the edges of a FormDiagram.

draw_loads

Draws the node loads in a FormDiagram as scaled arrows.

draw_nodes

Draws the nodes of a FormDiagram.

draw_reactions

Draws the support reaction forces in a FormDiagram as scaled arrows.

draw_segments

Draws additional line segments on a FormDiagram.

save

Saves the plot to a file.

Inherited Methods

clear

Clears the network plotter edges and nodes.

clear_collection

Clears a matplotlib collection object.

clear_edges

Clears the network object edges.

clear_nodes

Clears the netwotk plotter nodes.

draw_arrows

Draws arrows on a 2D plot.

draw_arrows2

draw_lines

Draws lines on a 2D plot.

draw_points

Draws points on a 2D plot.

draw_polygons

Draws polygons on a 2D plot.

draw_polylines

Draw polylines on a 2D plot.

gifified

Create a context for making animated gifs using a callback for updating the plot.

register_listener

Register a listener for pick events.

save_gif

Save a series of images as an animated gif.

show

Displays the plot.

top

Bring the plotting window to the top.

update

Updates and pauses the plot.

update_edges

Updates the plotter edge collection based on the network.

update_linecollection

Updates a line collection.

update_nodes

Updates the plotter node collection based on the network.

update_pointcollection

Updates the location and radii of a point collection.

update_polygoncollection