Skip to content

MRG, BUG: Fix line color in ICA.plot_overlay#8341

Merged
larsoner merged 1 commit intomne-tools:masterfrom
hoechenberger:ica-overlay
Oct 5, 2020
Merged

MRG, BUG: Fix line color in ICA.plot_overlay#8341
larsoner merged 1 commit intomne-tools:masterfrom
hoechenberger:ica-overlay

Conversation

@hoechenberger
Copy link
Copy Markdown
Member

@hoechenberger hoechenberger commented Oct 5, 2020

ICA.plot_overlay() didn't seem to work on my system with latest Matplotlib anymore (macOS, both the default and Qt5Agg backends). I would only see black traces, instead of red and black. Debugging showed that changig the colors of lines in a figure (in this case, from black to read) that has
been show()n was somehow part of the problem. Now we only show() once all plotting operations are done (We call plt_show(show) at the end of the plotting function), and this now works with the default macOS and the Qt5Agg backends for me.

`ICA.plot_overlay()` didn't seem to work on my system with
latest Matplotlib anymore (macOS, both the default and Qt5Agg
backends). I would only see black traces. Debugging showed
that changig the colors of lines in a figure that has
been `show()`n was somehow part of the problem. Now we only
`show()` once all plotting operations are done, and this now
works with the default macOS and the Qt5Agg backends for me.
@hoechenberger hoechenberger changed the title MRG, BUG: Fix changing line color in ICA.plot_overlay MRG, BUG: Fix line color in ICA.plot_overlay Oct 5, 2020
@hoechenberger
Copy link
Copy Markdown
Member Author

This should probably also be backported.

@hoechenberger hoechenberger added backport-candidate on-merge: backport to maint/1.12 BUG labels Oct 5, 2020
@hoechenberger hoechenberger requested a review from drammock October 5, 2020 09:44
@larsoner larsoner merged commit 666669a into mne-tools:master Oct 5, 2020
larsoner pushed a commit that referenced this pull request Oct 5, 2020
`ICA.plot_overlay()` didn't seem to work on my system with
latest Matplotlib anymore (macOS, both the default and Qt5Agg
backends). I would only see black traces. Debugging showed
that changig the colors of lines in a figure that has
been `show()`n was somehow part of the problem. Now we only
`show()` once all plotting operations are done, and this now
works with the default macOS and the Qt5Agg backends for me.
@larsoner larsoner added backported and removed backport-candidate on-merge: backport to maint/1.12 labels Oct 5, 2020
@hoechenberger hoechenberger deleted the ica-overlay branch October 5, 2020 12:17
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
`ICA.plot_overlay()` didn't seem to work on my system with
latest Matplotlib anymore (macOS, both the default and Qt5Agg
backends). I would only see black traces. Debugging showed
that changig the colors of lines in a figure that has
been `show()`n was somehow part of the problem. Now we only
`show()` once all plotting operations are done, and this now
works with the default macOS and the Qt5Agg backends for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants