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

MRG: TimeViewer matplotlib figure color #7925

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

GuillaumeFavelier
Copy link
Contributor

This PR updates the background and foreground colors of the internal matplotlib figure depending on the palette chosen for _Brain.

background="white" background="black" (default)
image image

It's an item of #7162

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@agramfort
Copy link
Member

can we add this to the doc somewhere?

@agramfort
Copy link
Member

I was told some years ago "if there is no doc it does not exist" :)

@GuillaumeFavelier
Copy link
Contributor Author

_Brain is a private class but its signature and features are designed to follow PySurfer's.

@agramfort
Copy link
Member

agramfort commented Jun 25, 2020 via email

@GuillaumeFavelier
Copy link
Contributor Author

AFAIK it's the case already:

background : tuple(int, int, int)
The color definition of the background: (red, green, blue).
foreground : matplotlib color
Color of the foreground (will be used for colorbars and text).
None (default) will use black or white depending on the value
of ``background``.

@agramfort
Copy link
Member

agramfort commented Jun 25, 2020 via email

@larsoner
Copy link
Member

#7927

@GuillaumeFavelier GuillaumeFavelier changed the title TimeViewer matplotlib figure color MRG: TimeViewer matplotlib figure color Jun 25, 2020
@larsoner larsoner merged commit dfcbd29 into mne-tools:master Jun 25, 2020
@larsoner
Copy link
Member

Thanks @GuillaumeFavelier !

@GuillaumeFavelier GuillaumeFavelier deleted the timeviewer_matplot_color branch June 25, 2020 15:52
larsoner added a commit to larsoner/mne-python that referenced this pull request Jun 25, 2020
* upstream/master: (23 commits)
  MAINT: Add mne.surface to docstring tests (mne-tools#7930)
  MRG: Add smoothing controller to TimeViewer for the notebook backend (mne-tools#7928)
  MRG: TimeViewer matplotlib figure color (mne-tools#7925)
  fix typos (mne-tools#7924)
  MRG, ENH: Add method to project onto max power ori (mne-tools#7883)
  WIP: Warn if untested NIRX device (mne-tools#7905)
  MRG, BUG: Fix bug with volume morph and subject_to!="fsaverage" (mne-tools#7896)
  MRG, MAINT: Clean up use of bool, float, int (mne-tools#7917)
  ENH: Better error message for incompatible Evoked objects (mne-tools#7910)
  try to fix nullcontext (mne-tools#7908)
  WIP: Fix Travis (mne-tools#7906)
  WIP: Prototype of notebook viz (screencast) (mne-tools#7758)
  MRG, FIX: Speed up I/O tests, mark some slow (mne-tools#7904)
  Proper attribution for Blender tutorial (mne-tools#7900)
  MAINT: Check usage [ci skip] (mne-tools#7902)
  Allow find_bad_channels_maxwell() to return scores (mne-tools#7845)
  Warn if NIRx directory structure has been modified from original format (mne-tools#7898)
  Pin pvyista to 0.24.3 (mne-tools#7899)
  MRG: Add support for reading and writing sufaces to .obj (mne-tools#7824)
  Fix _auto_topomap_coords docstring. (mne-tools#7895)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants