Remove colorbar

epochs.compute_psd().plot_topomap(bands, colorbar=False, show=False)

I tried the above code and the legacy method, but the color bar does not disappear. Is this only possible in the standard python 3.12?

Hello,

Thanks for posting! This seems to be a bug, at least in MNE v1.8 and the current dev build. I have opened an issue on GitHub to try and get this resolved (`colorbar=False` is ignored in `plot_psds_topomap()` · Issue #12852 · mne-tools/mne-python · GitHub).

Best,
Thomas

2 Likes

FYI, this is now resolved [BUG] Fix ignored `colorbar` flag in `plot_psds_topomap()` by tsbinns · Pull Request #12853 · mne-tools/mne-python · GitHub.

This will be fixed MNE v1.9 when it’s released, and is available already in the dev branch!

2 Likes

I updated to version 1.8 with pip, but the colorbar=False command does not work. I am using Python version 3.9.

So for MNE v1.8 the bug is still there, the fix will only be available for the next release of MNE in v1.9 (currently in development).

If you want to have the bug fixed immediately, you would need to install the development version of MNE (more info. here: Updating MNE-Python — MNE 1.9.0.dev37+gefe8b6a9c documentation). You would also need to upgrade to at least Python 3.10, as support for 3.9 has been dropped after MNE v1.8.

Let me know if you want more information on setting this up.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.