← Back to team overview

yade-users team mailing list archive

Re: [Question #693437]: does iterperiodaffect the results of simulation?

 

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

    Status: Needs information => Open

Li Zeng gave more information on the question:
Hi Robert,

below is the full error. I think it is a matplotlib library bug. But in
the previous problem, we changed the iterperiod problem and solved it.
But my problem is that when I change the iterperiod, my load-
displacement image also changes accordingly. However, iterperiod should
not change the load-displacement image? (my opinion)

Traceback (most recent call last):
File "/usr/lib/x86_64-linux-gnu/yade/py/yade/plot.py", line 514, in liveUpdate
ax.relimQ # recompute axes limits
File "/usr/lib/python3/dist-packages/matplotlib/axes/_base.py", line 2051, in
relim
self._update_line_limits(line)
File "/usr/lib/python3/dist-packages/matplotlib/axes/_base.py", line 1924, in
_update_line_limits
path = line.get_path()
File "/usr/lib/python3/dist-packages/matplotlib/lines.py", line 1027, in get_path
self.recache()
File "/usr/lib/python3/dist-packages/matplotlib/lines.py", line 679, in recache
self._xy = np.column_stack(np.broadcast_arrays(x, y)).astype(float)
File "<___ array_function___ internals?-", line 5, in broadcast_arrays
File "/usr/lib/python3/dist-packages/numpy/lib/stride_tricks.py", line 264, in
broadcast_arrays
shape = _broadcast_shape(*args)
File "/usr/lib/python3/dist-packages/numpy/lib/stride_tricks.py", line 191, in
_broadcast_shape
b = np.broadcast(*args[:32])
ValueError: shape mismatch: objects cannot be broadcast to a single shape 

regards,
Li

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