plot

pyvsim.System.plot(obj, mode='vtk', displayAxes=True)[source]

Convenience function to avoid the routine of creating visitor, making it visit the part tree and ask for plotting.

Warning - Due to bugs both in Matplotlib and VTK, the program execution is paused until the window is closed. So plotting should be the last operation in the pipeline.

Parameters :

obj : Primitives.Assembly

The scenario to be displayed

mode : “vtk” or “mpl”

The library to be used in displaying the scenario, the standard option is “vtk”, which is faster and supports rendering complex scenarios. Some scenarios, however, can be plotted using Matplotlib.

displayAxes : boolean

When plotting with VTK, the axis can be hidden by setting this option to false.

This Page