plot multiple plots at different iterPeriods
Hi,
following examples/
plot.plots=
plot.plot(
#...
O.run()
at the end of my script.
I'm using diffrent PyRunners to addData to the plot. These Pyrunners have different iterPeriods.
One PyRunner generates data für the plots 't':('Fn', 'Fmess',) and 't_xyz':('Fx', 'Fy', 'Fz',) and adds it via:
force=plot.
The other one calls updatePerforman
def updatePerforman
"""Berechnet die Performance (Speed) zwischen zwei Ausführungen dieser Funktion und gibt sie im Plot aus.
"""
global start, finish
start=finish
#start=
finish=O.realtime
#finish=
nIter=
speed=
plot.addData(
In my simulation performance recording (shown in the third subpot) begins at first iteration wheras force recording (shown in the first two subplots) starts at a later point.
The plots behave as they are supposed as long as only one plot.addData(...) function is called.
But as soon as force recording should start, data in the plots wont be updated anymore.
In the Inelsticity example this wasnt of any interesest, because all data was plotted in the same pyrunner that is at same iterPeriod with ONE plot.addData(...) function.
How can I realize multiple plot.addData calls from diffrent pyrunners at diffrent "periodicity" (iterPeriods)?
Thank you guys again for your help and effort
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alexander Eulitz [Eugen]
- Solved:
- Last query:
- Last reply: