Skip to content

Is there anyway I can create subplots using yasa.topoplot? #155

Answered by raphaelvallat
scshen19 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Unfortunately YASA always create a new Figure (with only one axe):

fig, ax = plt.subplots(figsize=figsize, dpi=dpi)

For more flexibility, I would recommend duplicating the code of yasa.topoplot and modify it e.g. in a Jupyter Notebook. If you disable the above figure creation, you should then be able to specify the axes directly to the https://mne.tools/dev/generated/mne.viz.plot_topomap.html, using axes= as a keyword argument to your custom topoplot function.

Your second question is more of a matplotlib question I think. As of now however, the yasa topoplot temporarily modifies the global matplotlib fontsize parameters, whic…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by remrama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants