Question #657061 on Yade changed:
https://answers.launchpad.net/yade/+question/657061

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Sam,

define a function which records the data
###
def plotAddData():
    plot.addData(
        dspl = O.bodies[3].state.displ()[1],
        force = O.forces.f(3)[1],
    )
###

call it periodically
###
O.engines = [
    ...
    PyRunner(iterPeriod=10,command='plotAddData()'),
]
###

and put plot commands at the end of script
###
plot.plots = {'dspl': 'force'}
plot.plot()
###

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to