ResearchOS / Biomech-Analysis-Platform-MATLAB

A GUI-based operating system framework to facilitate biomechanical data analysis. This platform attempts to manage the non-scientific part of coding without restricting the direction or method of scientific analysis.
MIT License
4 stars 0 forks source link

In Plot & Stats tab, change the assign variables implementation to be faster #124

Closed mtillman14 closed 1 year ago

mtillman14 commented 1 year ago

Don't use findall and don't reload the assign vars GUI after every change. Options:

  1. Keep the assign vars figure open at all times, but only visible when needed (need to update all vars list). Downside is that there's an extra random figure open that the user won't be expecting.
  2. Keep an extra copy of the vars list in the PGUI, invisible (still needs to be updated when vars change). May be a bit slower to load the PGUI, but hopefully just changing its parent to the new assigned vars figure should be faster than generating it each time.
mtillman14 commented 1 year ago

Done

mtillman14 commented 1 year ago

Changing variables is faster (not reloading everything every time), but loading the window still takes just as long. I think it's ok.