You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there any pattern behind when times are in ms or in s? #3164
Or rather, DON'T do this, because the last step sometimes just results in a very silly plot, but sometimes (particularly when using %matplotlib inline) takes a very long time to run because it is trying to plot something very weird.
I think in all newer code we try to use s and m but in some older legacy places we have ms and/or mm. IMO it would be worth going through a deprecation cycle with time_units='ms' -> 's', it's what we're doing with fit_sphere_to_headshapehere.
This continues to come up from time to time. And from working on #5079 it looks like the only plots that use [ms] are evoked.plot. This is inconsistent even with things that produce evoked.plot-like sensor trace plots. :(
@agramfort any change of heart about adding time_unit to evoked.plot and evoked.plot_joint? I think it would be a couple dozen lines of code to do it.
I'd actually be in favor of a deprecation cycle to get to 's'. It would be painful but then everything would be unified.
Activity
jona-sassenhagen commentedon Apr 23, 2016
To clarify, this is not about
plot_joint, which simply passes parameters to evoked.plot and evoked.plot_topomap.larsoner commentedon Apr 24, 2016
I think in all newer code we try to use
sandmbut in some older legacy places we havemsand/ormm. IMO it would be worth going through a deprecation cycle withtime_units='ms' -> 's', it's what we're doing withfit_sphere_to_headshapehere.agramfort commentedon Apr 24, 2016
jona-sassenhagen commentedon Apr 24, 2016
Definitely not least-surprise though you have to admit.
Yes! I can go through the code and see how big of a deal it would be.
agramfort commentedon Apr 24, 2016
jona-sassenhagen commentedon May 11, 2016
I just had my browser crash on me because I set xlim in seconds. (In the Notebook, it creates a massive PNG in that case.)
I will at least try to think of avoiding this situation, e.g. by fixing plot_joint for situations where times is not in xlim or xlim is very short.
larsoner commentedon May 11, 2016
Closing as "won't fix" until we convince @agramfort it's worthwhile :)
But yes if you can think of a good way to warn people at least that would help.
larsoner commentedon Apr 2, 2018
This continues to come up from time to time. And from working on #5079 it looks like the only plots that use
[ms]areevoked.plot. This is inconsistent even with things that produceevoked.plot-like sensor trace plots. :(@agramfort any change of heart about adding
time_unittoevoked.plotandevoked.plot_joint? I think it would be a couple dozen lines of code to do it.I'd actually be in favor of a deprecation cycle to get to
's'. It would be painful but then everything would be unified.larsoner commentedon Apr 2, 2018
And by "working on XXX" I meant "working on #5079" ... that's what I get for drafting a reply before actually making the PR :)
agramfort commentedon Apr 2, 2018
larsoner commentedon Apr 2, 2018
Yes, we are 98% there, just
evoked.plotto conquer IIRC