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 <function liveUpdate at 0x7f9af8eb7350>
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/yade/py/yade/plot.py", line 508, in liveUpdate
    ax.relim() # recompute axes limits
  File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 1938, 
in relim
    self._update_line_limits(line)
  File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 1801, 
in _update_line_limits
    path = line.get_path()
  File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 957, in 
get_path
    self.recache()
  File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 667, in 
recache
    self._xy = np.column_stack(np.broadcast_arrays(x, y)).astype(float)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/stride_tricks.py", line 249, 
in broadcast_arrays
    shape = _broadcast_shape(*args)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/stride_tricks.py", line 184, 
in _broadcast_shape
    b = np.broadcast(*args[:32])
ValueError: shape mismatch: objects cannot be broadcast to a single shape

The second problem: I use the plot.resetData() and plot.live= True to clear the 
previous data and update the plot, but it doesn't work, the plot isn't updated.

The last problem is that I use the O.cell.trsf=Matrix3.Identity to set the 
current cell configuration to be the reference one, but when I use 
print(O.cell.trsf, triax.strain) to print the current strain, the strain matrix 
is not the identity matrix.

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to