MouseLand/suite2p

BUG: Unable to visualize selected cells for rastermap plots

Opened this issue · 0 comments

Describe the issue:

When I select a cell and either ctrl+v or select "visualize selected cells" from the visualizations menu, nothing happens. Instead, I get the following error:

File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\menus.py", line 124, in
parent.visualizations.triggered.connect(lambda: vis_window(parent))
File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\menus.py", line 193, in vis_window
parent.VW = visualize.VisWindow(parent)
File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\visualize.py", line 341, in init
colormap = cm.get_cmap("gray_r")
AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'

I tried running pip install --upgrade matplotlib but I get the same error with the upgraded version (3.8).

I should add (because I assume it is related) that the L: corr with 1D var, bin=^^^ and the M: rastermap/custom are greyed out and cannot be selected within the GUI.

Reproduce the code example:

ctrl+v or select "visualize selected cells"

Error message:

File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\menus.py", line 124, in <lambda>
    parent.visualizations.triggered.connect(lambda: vis_window(parent))
  File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\menus.py", line 193, in vis_window
    parent.VW = visualize.VisWindow(parent)
  File "C:\ProgramData\anaconda3\envs\suite2p\lib\site-packages\suite2p\gui\visualize.py", line 341, in __init__
    colormap = cm.get_cmap("gray_r")
AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'

Version information:

suite2p v0.14.4

Context for the issue:

I am attempting to generate rasterplots to examine correlated activity of cell populations to be able to plan my next experiments.