yade-users team mailing list archive
Mailing list archive
Re: [Question #678500]: plot 2 figures
Question #678500 on Yade changed:
Status: Open => Answered
Jan Stránský proposed the following answer:
For next time, MWE = Minimal Working Example .
in your case, the plot becomes transparent because there are not
continuous data to plot (plot .addData adds NaN in case some data are
> plot.addData(i=O.iter,e=log(kineticEnergy()/n), **O.energy) # 1st plot.addData, adding NaN for pos_z
> if O.iter >=0.8*1e4:
> plot.addData(i=O.iter,pos_z=O.bodies.state.pos) # 2nd plot.addData, adding NaN for e
if O.iter > ...:
You received this question notification because your team yade-users is
an answer contact for Yade.