← Back to team overview

yade-users team mailing list archive

Re: [Question #662763]: How to save Data in a txt or Gnuplot file

 

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

    Status: Needs information => Answered

Luc Scholtès proposed the following answer:
Hello Sophie,

I think that something is missing somewhere in your script.

You need to call for the data to be saved with, for example [1]:

plot.saveDataTxt('nameOfTextFile')

If you put that at the end of your addPlotData() function, the file will
be created every time the function is called.

If you put that at the end of your script, the file will be created at
the end of your simulation.

plot.saveGnuplot() should work too [2]

[1] https://yade-dem.org/doc/yade.plot.html?highlight=save#yade.plot.saveDataTxt
[2] https://yade-dem.org/doc/yade.plot.html?highlight=gnuplot#yade.plot.saveGnuplot

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