SAND-Lab / MEA-NAP

MEA-NAP. A streamlined diagnostic and analytic tool for data obtained using microelectrode arrays.
GNU General Public License v3.0
12 stars 6 forks source link

[Feature request] Add option to disable Matlab pop up window for plots #3

Closed Timothysit closed 2 years ago

Timothysit commented 2 years ago

Problem

Currently when running through a batch of plots, new windows pop up with the plot which steals the focus of the mouse, making it difficult to work on other things whilst the code is running. (I briefly read that this may be more of an issue on Linux machines, I am running my code on Ubuntu 18.04.4 LTS, Matlab R2019b.)

Proposed solution

It will be great to have the plots not pop up, perhaps see here for potential solution.

Timothysit commented 2 years ago

This is now solved by plotting everything in a single figure handle (and clearing the figure between plots). See commit de0e773 and commits around the same time to all the plotting functions. I notice some empty figures after running PlotNetMet but this does not seem to affect plotting function, just a minor nuisance. I will reopen this issue if those empty figures turn out to be problematic.