Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Unable to visualize selected cells for rastermap plots #1130

Open
C57B6J opened this issue Jun 24, 2024 · 0 comments
Open

BUG: Unable to visualize selected cells for rastermap plots #1130

C57B6J opened this issue Jun 24, 2024 · 0 comments

Comments

@C57B6J
Copy link

C57B6J commented Jun 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant