Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-07 Thread doclarens
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 doclarens posted a new comment: hanks, Janek. I still have a problem, I use the AttributeError: 'module' object has no attribute 'setLiveForceAlwaysUpdate' to set the current cell configuration to be the referen

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Zhicheng Gao
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Status: Answered => Solved Zhicheng Gao confirmed that the question is solved: Thanks Janek Kozicki, that solved my question. -- You received this question notification because your team yade-users is an a

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Janek Kozicki
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Status: Open => Answered Janek Kozicki proposed the following answer: AttributeError: 'module' object has no attribute 'setLiveForceAlwaysUpdate' You need to upgrade your version to 2021.01a, this was fixed

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Zhicheng Gao
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Zhicheng Gao gave more information on the question: Dear Janek, According to your suggestion, I add plot.setLiveForceAlwaysUpdate(True) to my code, but the following error occurred: Traceback (most recent cal

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Zhicheng Gao
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Status: Answered => Open Zhicheng Gao is still having a problem: Thanks, Janek. I still have a problem, I use the O.cell.trsf=Matrix3.Identity to set the current cell configuration to be the reference one, b

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Janek Kozicki
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Janek Kozicki proposed the following answer: "ValueError: shape mismatch" this happens because a plot uses two lists of points: arguments (say "x") and values (say "y"). Plotting happens at the same time when cal

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-06 Thread Janek Kozicki
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Status: Open => Answered Janek Kozicki proposed the following answer: Try https://yade- dem.org/doc/yade.plot.html#yade.plot.setLiveForceAlwaysUpdate -- You received this question notification because your

Re: [Yade-users] [Question #697421]: The problem of plot

2021-06-05 Thread Zhicheng Gao
Question #697421 on Yade changed: https://answers.launchpad.net/yade/+question/697421 Zhicheng Gao gave more information on the question: this is my code: ##__ First section, generate sample_ from __future__ import print_function from yade import pack, qt, plot from math impor

[Yade-users] [Question #697421]: The problem of plot

2021-06-05 Thread Zhicheng Gao
New question #697421 on Yade: https://answers.launchpad.net/yade/+question/697421 The first problem is that when I run my code, the following exceptions and errors occur: Unhandled exception in thread started by Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/yade/py/yade/pl