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] For network plots plotting node colours by network metrics, scale the colorbar according to maximum and minimum values across batch of recording #8

Closed EliseChang closed 1 year ago

EliseChang commented 2 years ago

For MEA grid plots, colorbar limits could be set uniformly across a batch of recordings, especially for those metrics bound by a specified range e.g. [0 1]. Currently, I think they are scaled according to the individual recording, but there is an existing issue with this (see Issue #7).

Timothysit commented 2 years ago

Hi Elise, for now I have added the option to use the same theoretical bounds on the colormap (eg. some metric are bound to be between 0 and 1), to use it, use the line Params.use_theoretical_bounds = 1 in MEApipeline.m.

Setting the bounds based on the min/max of a batch of recording will require some more work; currently the code for calculating the network metric and plotting the results are within the same function, and so I will need to separate out these two parts to first save the network metric for all recording, then plot them.

These changes were made in commit 1b5873b