question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mne.viz.topomap sensor name size too small

See original GitHub issue

Names on the topomap are always printed small: https://github.com/mne-tools/mne-python/blob/master/mne/viz/topomap.py#L604 ax.text(p[0], p[1], ch_id, horizontalalignment='center', verticalalignment='center', size='x-small')

That’s too small if you choose a size of several inches (e.g. 10).

Possible solutions:

  • Provide another API parameter
  • Derive the parameter from the ‘size’ parameter

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
dengemanncommented, May 19, 2016

Another solution, just edit the figure post-hoc:

for tt in plt.findobj(fig, matplotlib.text.Text):
    if tt.get_text() in evoked.ch_names:
        tt.set_fontsize(14)
0reactions
agramfortcommented, Jul 22, 2017

I upvote @dengemann 's answer. It should do the job.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mne.viz.plot_evoked_topomap — MNE 1.2.2 documentation
If True , show channel names next to each sensor marker. ... Interactive mode works smoothly only for a small amount of topomaps....
Read more >
mne.viz.plot_topomap - align data to head outline
I'm wondering (1) why the positions are not aligned to the center, and (2) why does the size not fit on the head...
Read more >
Colorbar for mne.viz.plot_topomap ? Python - Stack Overflow
Is it possible to plot the sensors dot a little bigger? Here is the code (I hope that's enough info?): ch_names = mat_data['EEG']['chanlocs'][' ......
Read more >
mne.Evoked — MNE 0.15.dev0 documentation
Name of evoked/average FIF file to load. ... If more than one sensor Type is present in the data the channel type ......
Read more >
FEATURES SHOWN ON TOPOGRAPHIC MAPS
is similar to a topographic map, except that it ... which show all features at true scale size, small ... name indicates, these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found