Skip to content

ENH: add mask parameter to plot topomap - #1301

Merged
agramfort merged 14 commits into
mne-tools:masterfrom
dengemann:contour
Jun 26, 2014
Merged

agramfort merged 14 commits into
mne-tools:masterfrom
dengemann:contour

Conversation

@dengemann

Copy link
Copy Markdown
Member

Make life easier for plotting sensor stats.

screenshot 2014-05-25 21 59 45

Comment thread mne/io/evoked.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please update docstring + add a test

@agramfort

Copy link
Copy Markdown
Member

@dengemann

Copy link
Copy Markdown
Member Author

could it be advertised in an example such as

yes. would be a good test. I figured it can be a problem with the overlay if there is only one or two sensors surrounded by non-significant ones.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.09%) when pulling e0960e4 on dengemann:contour into cb9ab46 on mne-tools:master.

@dengemann

Copy link
Copy Markdown
Member Author

Too bad. Whether the display works depends on the spatial structure of the mask. with the same number of sensors 'active' I get either clusters or not, depending on how I sort the mask. It seems the masking does some funky things with the interpolation.

@dengemann dengemann changed the title ENH: add mask parameter to plot topomap WIP: add mask parameter to plot topomap May 26, 2014
@dengemann dengemann changed the title WIP: add mask parameter to plot topomap ENH: add mask parameter to plot topomap May 29, 2014
@dengemann

Copy link
Copy Markdown
Member Author

Back to ENH:

screenshot 2014-05-29 13 42 32

From my end ready to review.

cc @jdsitt @kingjr

@dengemann

Copy link
Copy Markdown
Member Author

@agramfort @mainkjas feel free to review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

time to get rid of this ;-)

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) when pulling 89316ef on dengemann:contour into cb9ab46 on mne-tools:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that's a bit ugly... Evoked.init should be a proper constructor :-/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

well we do it all the time in other examples ....

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

well we do it all the time in other examples ....

I know but it's ugly :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

would be good to have some nice default constructor for putting T_maps etc. in an evoked.

@dengemann

Copy link
Copy Markdown
Member Author

@agramfort @mainakjas discussion addressed

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.75%) when pulling 534073b on dengemann:contour into 5f6aafe on mne-tools:master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the generated figure is not nice. font size for names is too small + a lot of empty spaces.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

well, this cannot be tackled in this PR. The problem is that the size parameters are not handled proportionally. If you increase the image size, the remaining parameters stay the same. I can remove the channel names or make the figure small.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) when pulling 0230b02 on dengemann:contour into 5f6aafe on mne-tools:master.

Comment thread mne/io/evoked.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indices

@agramfort

Copy link
Copy Markdown
Member

merge if you're in a hurry but if you do open an issue with all what shall be fixed so we don't forget

@agramfort

Copy link
Copy Markdown
Member

ok done.

@dengemann please review. The marker params are now adapted automatically to the size param.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) when pulling 2614938 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) when pulling 2614938 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.05%) when pulling 25710c7 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-2.02%) when pulling 67cb479 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-2.02%) when pulling 67cb479 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) when pulling 67cb479 on dengemann:contour into f4c6245 on mne-tools:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) when pulling 67cb479 on dengemann:contour into f4c6245 on mne-tools:master.

@agramfort
agramfort merged commit 67cb479 into mne-tools:master Jun 26, 2014
@agramfort

Copy link
Copy Markdown
Member

merged by rebase after fixing what's new

@agramfort

Copy link
Copy Markdown
Member

nice team work !

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.

4 participants