PythonPlotter

class pyvsim.System.PythonPlotter[source]

This visitor class creates a plot of the assembly tree using the Matplotlib library from python.

Methods

display(displayAxes=True)[source]

Creates a window and plots all the objects found during the last visit to the parts tree.

I.e., before running this command, you should do:

main_assembly.acceptVisitor(plotter)

Attention: This will stop the program execution until the window is closed. This is a “feature” of matplotlib and VTK.

lineActor(obj)[source]

Adds a collection to the current axes to draw a line

polyActor(obj)[source]

Adds a collection to the current axes to draw a surface

visit(obj)[source]

Takes a snapshot of the object and creates a elements in a Matplotlib window.

This Page