Skip to content

[Easy] Switch default colors to MPL defaults? #5154

Closed

Description

@jona-sassenhagen

Since 2.0, the MPL defaults (c0, c1, ...) are very good. Should we not transition there with, for example, our line plot defaults?

Activity

  1. larsoner commented on Apr 23, 2018

    @larsoner
    Member

    Which line plots do you have in mind?

  2. jona-sassenhagen commented on Apr 23, 2018

    @jona-sassenhagen
    ContributorAuthor

    All plots that use mne.viz.utils.COLORS, i.e., the annotation plots.

  3. larsoner commented on Apr 23, 2018

    @larsoner
    Member

    Sounds good to me. I think we can just change these and put a note in the API section.

  4. changed the title [-]Switch default colors to MPL defaults?[/-] [+][Easy] Switch default colors to MPL defaults?[/+] on Apr 23, 2018
  5. sappelhoff commented on May 4, 2018

    @sappelhoff
    Member

    See PR .. is this what you meant @jona-sassenhagen? Here are the colors.

    However, this change means going from

    ['b', 'g', 'r', 'c', 'm', 'y', 'k', '#473C8B', '#458B74',
     '#CD7F32', '#FF4040', '#ADFF2F', '#8E2323', '#FF1493']

    to

    [u'#1f77b4', u'#ff7f0e', u'#2ca02c', u'#d62728',
     u'#9467bd', u'#8c564b', u'#e377c2', u'#7f7f7f', u'#bcbd22', u'#17becf']

    i.e., fewer colors. Is that an issue?

  6. jona-sassenhagen commented on May 4, 2018

    @jona-sassenhagen
    ContributorAuthor

    We could just stick with 'c0', 'c1', 'c2', ... right?

  7. larsoner commented on May 4, 2018

    @larsoner
    Member

    And we do have conditionals that look for 'r' in the color cycle somewhere in the viz plotting code having to do with annotations. So that will need to be changed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions