New question #678500 on Yade:
https://answers.launchpad.net/yade/+question/678500

hi everyone ,
i want to plot 2 figures the first is for kinetic energy and the second for 
pos_z of one particle .
i obtain just the second figure , why the first douen't plot ? 
 there's my code :

def plotAddData():
   #ekin=kineticEnergy()/n
   plot.addData(i=O.iter,e=log(kineticEnergy()/n), **O.energy)
   # oscillation 
   if O.iter >=1e4: 
       O.engines=O.engines+[HarmonicMotionEngine(A=[0,0,1.], f=[0,0,2.6], fi = 
[0.0,0.0,0.0],ids =Cylinder)]
       # save in file
       plot.addData(i=O.iter,pos_z=O.bodies[0].state.pos[2])

plot.plots={'i':['e']+O.energy.keys()}
plot.plots={'i':['pos_z']}      
plot.plot()
plot.live=True

than'k in advance  

-- 
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