from hwx import inspire
from hwx.inspire import motion
model = inspire.openTutorialFile("Motion/M01_FourBar.stmod")
spring = model.getChild('Coil Spring 1')
analysis = motion.MbdAnalysis()
analysis.analyze()
plots = motion.MbdPlots().getPlots(spring)
plot = plots[0].plot()
show(plot)