Re: [Yade-users] [Question #155725]: Plot data

2023-08-28 Thread Yade Guide
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Yade Guide posted a new comment: Hey there! As an automated bot, I've scanned through relevant threads and compiled a summary for your reference. Feel free to explore further by clicking on the links attached. T

Re: [Yade-users] [Question #155725]: Plot data

2011-05-25 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Solved Arthur Mercier confirmed that the question is solved: My problem is solved, I made a mistake. Indeed, I just copied and pasted the script in yade each time, and doing by this way,

Re: [Yade-users] [Question #155725]: Plot data

2011-05-10 Thread Anton Gladky
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Anton Gladky proposed the following answer: Yes, it is working and draws a straight inclined line. -- You received this question notification because you are a member of yade-users

Re: [Yade-users] [Question #155725]: Plot data

2011-05-10 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: I understand that Python is very sensitive to indents, but I really tried everything: no space, 1 spaces, 2 spaces, 3 spaces, 4 spaces, 5 sp

Re: [Yade-users] [Question #155725]: Plot data

2011-05-10 Thread Anton Gladky
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Anton Gladky proposed the following answer: Function creation is not yade "feature". It is the python task to parse the code. Python itself is very sensitive to indents. Try not to

Re: [Yade-users] [Question #155725]: Plot data

2011-05-09 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: "http://www.mail-archive.com/yade- us...@lists.launchpad.net/msg03079.html To install yade-daily, you just need to type in terminal:

Re: [Yade-users] [Question #155725]: Plot data

2011-05-09 Thread jduriez
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 jduriez proposed the following answer: More simply, what happens if you do not save/reload ? -- You received this question notification because you are a member of yade-users, which is an answer contact for Yad

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Anton Gladky
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Anton Gladky proposed the following answer: http://www.mail-archive.com/yade-users@lists.launchpad.net/msg03079.html To install yade-daily, you just need to type in terminal:

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: I'm using Ubuntu 10.10. And I installed Yade as "1) cd /home/arthur/yade This folder should be empty 2) bzr checkout lp:yade 3) scons PREFIX

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Anton Gladky
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Anton Gladky proposed the following answer: What operating system do you use? Did you install Yade from ppa or source code? Anton -- You received this question notification becaus

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: Yes it is what I'm doing... but even if I don't write saveTmp() in my script, the problem occurs. -- You received this question notificati

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Chareyre
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Chareyre proposed the following answer: I see a saveTmp() in your script. User defined functions like "saveData" are not saved with a simulation. Therefore if you reload the simulat

Re: [Yade-users] [Question #155725]: Plot data

2011-05-06 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: I tried with the version 2857 and I still have the problem. So I think it's not a version problem or a mistake in my script. "NameError Tra

Re: [Yade-users] [Question #155725]: Plot data

2011-05-05 Thread jduriez
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 jduriez posted a new comment: It was with r2855 -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. _

Re: [Yade-users] [Question #155725]: Plot data

2011-05-05 Thread jduriez
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered jduriez proposed the following answer: I can run your script without error message. I get finally a figure with t1 as x-axis and t2 as y-axis. With the head of an arrow at origin. -

Re: [Yade-users] [Question #155725]: Plot data

2011-05-04 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Solved => Open Arthur Mercier is still having a problem: Ok, so I just changed the end of my script: "O.engines=[ [...] PyRunner(iterPeriod=100,command="saveData()"), ] def saveData

Re: [Yade-users] [Question #155725]: Plot data

2011-05-04 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Solved Arthur Mercier confirmed that the question is solved: Ok, so I just changed the end of my script: "O.engines=[ [...] PyRunner(iterPeriod=100,command="saveData()"),

Re: [Yade-users] [Question #155725]: Plot data

2011-05-04 Thread Anton Gladky
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Anton Gladky proposed the following answer: But variables should be named differently: def saveData(): plot.addData(t1=O.time,t2=O.time) plot.plots={'t1':('t2')} plot.plot() This

Re: [Yade-users] [Question #155725]: Plot data

2011-05-04 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: Still the error message "NameError: name 'saveData' is not defined" Here is my script, does my script work in yours ? "import numpy, plot,

Re: [Yade-users] [Question #155725]: Plot data

2011-05-03 Thread Chiara Modenese
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Chiara Modenese proposed the following answer: Sorry, I send the mail again. see below. On 3 May 2011 19:47, Chiara Modenese wrote: > Hi Arthur, > > see the periodic engine PyRunner for your purpose https://y

Re: [Yade-users] [Question #155725]: Plot data

2011-05-03 Thread Chiara Modenese
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered Chiara Modenese proposed the following answer: Hi Arthur, see the periodic engine PyRunner for your purpose. Here below is a basic example of what you can do: O.engines=[ ...

Re: [Yade-users] [Question #155725]: Plot data

2011-05-03 Thread Arthur Mercier
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Answered => Open Arthur Mercier is still having a problem: Ok, I think I understand but the problem is still I don't know how to create a function It plots, but I have to pause the simulation and to

Re: [Yade-users] [Question #155725]: Plot data

2011-05-03 Thread jduriez
Question #155725 on Yade changed: https://answers.launchpad.net/yade/+question/155725 Status: Open => Answered jduriez proposed the following answer: Hello, data that you can plot are contained in a place you have to fill with instruction plot.addData(what_you_want_to_store=how_you_get_it)

[Yade-users] [Question #155725]: Plot data

2011-05-03 Thread Arthur Mercier
New question #155725 on Yade: https://answers.launchpad.net/yade/+question/155725 Hi, I use Ubuntu 10.10 and Yade bzr2811. Here is my script: http://www.2shared.com/file/V3IFvhf1/prob.html I'd like to plot some datas. For instance I'd like to plot the time versus the position or the velocity o