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
Interactive plots with show=False #5108
Comments
Yes I could see how this would happen. I'm not sure if there is a good solution, though. Should we add something to the |
I don't know enough about python to know if this is possible, but I would
think the ideal case would be to monitor the object and then redraw
derivative plots (butterfly, topos etc) if the object is modified in a
meaningful way. An alternative would be store a copy of the object for
plotting, but that would have huge overhead for epochs or raw.
…On Mon, Apr 9, 2018 at 1:15 PM Eric Larson ***@***.***> wrote:
Yes I could see how this would happen. I'm not sure if there is a good
solution, though. Should we add something to the plot_visualize_evoked or
somewhere else about this behavior? This will also affect all plotting
modes where you can modify an object (in weird/probably breaking ways),
such as epochs.plot and raw.plot.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5108 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFU7nb7BeQYdILo3eYY3AlQhZ4M3JdmKks5tm5cZgaJpZM4TM4K1>
.
|
at least
evoked.plot
could be fixed as it cannot change the evoked instance.
|
another option to consider here would be disabling interactivity of a figure when @bloyl do you often want to initialize a hidden plot, run some other code, and then later call |
Interactive plots with show=False or with non blocking matlabplot backends can lead to unexpected results.
For instance (here is gist showing this for sample data - https://gist.github.com/bloyl/7f6a7910bf2afce5f198b6233f39416b )
This will make 2 figures. the Butterfly plots will be correct, the first will show no bad channels and the second will show the bads chans in red.
However if you select a time range from either plot you will see a topomap created using on the 'good' channels of evoked. This is unexpected for 2 reasons.
This is understandably a corner case and not a high priority but I wanted it listed so I don't completely forget about it :)
The text was updated successfully, but these errors were encountered: