Skip to content

realtime simulation plotting#446

Closed
GREENRAT-K405 wants to merge 1 commit into
ControlCore-Project:devfrom
GREENRAT-K405:feat/realtime-simulation-plotting
Closed

realtime simulation plotting#446
GREENRAT-K405 wants to merge 1 commit into
ControlCore-Project:devfrom
GREENRAT-K405:feat/realtime-simulation-plotting

Conversation

@GREENRAT-K405
Copy link
Copy Markdown
Contributor

  • I have replaced the previous blocking behavior where plots were only generated at the very end of a simulation cycle with real-time, live-updating visualizations across the simulation

My motive behind this big change was:

  • In real-world applications (such as simulating a pacemaker system or observing prolonged physiological responses), waiting for an entire 1000+ cycle simulation to finish before seeing the results is impractical. Users and researchers need to visually monitor system stability, inputs (u), and outputs (ym) dynamically as the simulation runs.
  • Furthermore, as we prepare for simulations with heavier computational workloads and longer runtimes (e.g., upcoming Julia implementations), having live feedback is critical for monitoring system behavior without waiting for complete execution.

@pradeeban I have done the implementation as we discussed yesterday, while doing that I have discovered that some of the ratc study simulation weren't running properly because of python version (the older version of python were a little linent in terms of math bugs, but newer python is a little stricter, this is causing some kind of value error when debugging some of the graphs especially the yuyu-series graphs.

I believe that we should avoid touching actual code for the simulation as of right now as it contains our legacy studies and doing even a small mistake in fixing the actual simulation can worsen the problem.

In this PR I have just changed the logic of how matplotlib is plotting graph.

This fixes #445 .

@GREENRAT-K405 GREENRAT-K405 changed the base branch from main to dev February 21, 2026 23:09
@GREENRAT-K405 GREENRAT-K405 reopened this Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature update] Live plotting of simulation graph

1 participant