Skip to content

Show times relative to meas_date in raw.plot #9335

Closed

Description

@cbrnr

Based on my question in our forum (https://mne.discourse.group/t/show-times-relative-to-meas-date-in-raw-plot/3027/3), I think it would be useful to show time stamps based on meas_date on the x-axis of raw.plot. This should be optional, and by default raw.plot should stick to showing time starting at 0.

Activity

  1. larsoner commented on Apr 26, 2021

    @larsoner
    Member

    In terms of a mechanism for doing it, I would make a new tick formatter. Matplotlib decides where the ticks go, and the formatter takes the x values (which are just from raw.times starting from zero) and incorporates whatever information about first_samp, raw.annotations.meas_date etc. and returns the datetime string.

  2. cbrnr commented on Apr 27, 2021

    @cbrnr
    ContributorAuthor

    I can give it a try, but not for 0.23 (obviously).

  3. cbrnr commented on Jun 9, 2021

    @cbrnr
    ContributorAuthor

    Fixed in #9419.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions