Skip to content

fix colorbar suppression when vlim is joint - #11867

Merged
larsoner merged 2 commits into
mne-tools:mainfrom
drammock:fix-vlim-joint
Aug 7, 2023
Merged

larsoner merged 2 commits into
mne-tools:mainfrom
drammock:fix-vlim-joint

Conversation

@drammock

@drammock drammock commented Aug 7, 2023

Copy link
Copy Markdown
Member

@larsoner

larsoner commented Aug 7, 2023

Copy link
Copy Markdown
Member

Looks like the default is colorbar=False which might explain why the tutorial has no colorbar

https://output.circle-artifacts.com/output/job/a2b760da-5862-4658-bf9e-0082d15d00c9/artifacts/0/html/auto_tutorials/epochs/20_visualize_epochs.html#sphx-glr-auto-tutorials-epochs-20-visualize-epochs-py

image

So it looks the same as on main

https://mne.tools/dev/auto_tutorials/epochs/20_visualize_epochs.html#sphx-glr-auto-tutorials-epochs-20-visualize-epochs-py

That being said I think they both look okay and the code looks okay, so if you agree this (still) does not need a colorbar then +1 for merge from me based on my having looked at the code (it should do the right thing I think)

FWIW at some point we could switch this to use constrained_layout and just add a fig.colorbar rather than using this ai == len(axes) - 1 or whatever. But that would be for another PR I think :)

@larsoner larsoner added this to the 1.5 milestone Aug 7, 2023
@drammock

drammock commented Aug 7, 2023

Copy link
Copy Markdown
Member Author

@larsoner
larsoner merged commit 7c4e27c into mne-tools:main Aug 7, 2023
@larsoner

larsoner commented Aug 7, 2023

Copy link
Copy Markdown
Member

Yes indeed, thanks @drammock !

@drammock
drammock deleted the fix-vlim-joint branch August 8, 2023 13:47
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
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

Successfully merging this pull request may close these issues.

2 participants