← Back to team overview

yade-users team mailing list archive

[Question #678500]: plot 2 figures

 

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.