Closed blogeman closed 6 months ago
See https://github.com/fastplotlib/fastplotlib/issues/425
For now I would just set the controller_ids to "sync", and manually set the controllers after creating the gridplots, something Iike:
gp[0, 0].controller = other_gp[0, 0].controller
I think that should work, if not you'll have to just use gridplots with independent controllers between them until the next release of fastplotlib.
Thanks for looking into this @kushalkolar. I'm not very familiar with the construction of gridplots. Could you please provide a little more information about how to do this in the context of the cnmfe.ipynb notebook?
Don't specify controllers
and then do this after creating iw_thres_movie
:
for subplot in iw_thres_movie.gridplot:
subplot.controller = iw_corr_pnr.gridplot["corr"].controller
I think that should work
That allows the code block to run but in the visualization the four panels generated from iw_thres_movie go black as soon as the play button is clicked. This is the same behavior as commenting out the line that defines the controllers. Not sure what to test since no error is generated but would be happy to attempt and implementations you might have.
They're black because no pixels are above the corr and pnr thresholds when you create the plot :)
Change the corr and pnr thresholds (adjust the vmin using the histogram tool on the right of each Subplot) and reset the vmin vmax of the threshold plots
On Thu, Mar 7, 2024, 06:42 Brandon Logeman @.***> wrote:
That allows the code block to run but in the visualization the four panels generated from iw_thres_movie go black as soon as the play button is clicked. This is the same behavior as commenting out the line that defines the controllers. Not sure what to test since no error is generated but would be happy to attempt and implementations you might have.
— Reply to this email directly, view it on GitHub https://github.com/nel-lab/mesmerize-core/issues/282#issuecomment-1983332290, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHXXRGK57OPF5AQRFH32F3YXBHATAVCNFSM6AAAAABEJLU4PCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTGMZTEMRZGA . You are receiving this because you were mentioned.Message ID: @.***>
Oh got it now, thanks.
I'm getting an error when running the cnmfe.ipynb when trying to sync the threshold image widget with the corr-pnr plot: https://github.com/nel-lab/mesmerize-core/blob/74345ef336539b59b87a33025cb50302b876f6a4/notebooks/cnmfe.ipynb#L881
Specifically I get the following error:
Looking at the fastplotlib implementation of the Gridplot class it seems that it is not expecting to receive the variable 'controllers'. https://github.com/fastplotlib/fastplotlib/blob/5978e7d9f2727eb953a243780af92592dd6ad416/fastplotlib/layouts/_gridplot.py#L28
I tried substituting controllers with 'controller_types' and 'controller_ids' to check if these names changed with a version update and could be a simple swap but that resulted in errors as well. Commenting out the line allows the block to run but bottom portion of the plot is broken.
Any thoughts on whats going on here?