← Back to team overview

yade-users team mailing list archive

Re: Facet position

 


yade.plot.plots={'t':('Z_pr')}
def myAddPlotData():
    press=O.bodies[id_press]
yade.plot.addData({'t':O.time,'Z_pr':press.phys['se3'][2],'F':O.bex.f(id_press),.....

Does not work.
What do you mean, "does not work"? (Post your script if unsure)

Oh! perhaps you meant

yade.plot.plots={'t':('Z_pr',)}

(note the comma: that makes the ('Z_pr',) a 1-tuple; ('Z_pr') is just string that is put into redundant parentheses and you will get some weird error.




Follow ups

References