Skip to content

Rename functions (1): palette_ #299

Closed

Description

@GegznaV

This issue complements #208 (comment).

In the development version of hyperSpec, I found 4 functions/objects that define color palettes.
I suggest using consistent naming (prefix palette_) for all palette-related objects:

Status Current name Suggested name
Done in #313 CB7 palette_colorblind
✔️ matlab.dark.palette palette_matlab_dark
✔️ matlab.palette palette_matlab
✔️ alois.palette palette_alois

Activity

  1. added
    Topic: style ✏️
    on Feb 11, 2021
  2. changed the title [-]Rename functions: palette_[/-] [+]Rename functions (1): palette_[/+] on Feb 11, 2021
  3. self-assigned this
    on Feb 12, 2021
  4. bryanhanson commented on Feb 15, 2021

    @bryanhanson
    Collaborator

    CB7 is color-blind-friendly so when renaming it should probably get a more descriptive name, perhaps something like palette_colorblind.

    I'm in favor of these changes.

  5. cbeleites commented on Feb 15, 2021

    @cbeleites
    Owner

    Sounds good to me.
    I think this could be a good first issue, since it will get a newcomer through the deprecation etc. steps.

    @GegznaV, if you agree, please tag it good-first-issue.

  6. removed their assignment
    on Feb 15, 2021
  7. GegznaV commented on Feb 15, 2021

    @GegznaV
    CollaboratorAuthor

    I'll review later if it can be a good-first-issue

  8. added
    Status: ready ✔️
    on Feb 23, 2021
  9. GegznaV commented on Feb 24, 2021

    @GegznaV
    CollaboratorAuthor

    Remove NOT DONE in NEWS.md after the remaining functions are properly renamed and the old ones are deprecated.
    The rows to fix in NEWS.md:

     Deprecated function     | New (replacement) function       | Related issues
    -------------------------|-------------------------------   | ----------------
     `matlab.dark.palette`   | `palette_matlab_dark`            |  #208, #299 NOT DONE
     `matlab.palette`        | `palette_matlab`                 |  #208, #299 NOT DONE
     `alois.palette`         | `palette_alois`                  |  #208, #299 NOT DONE
    
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

    Note: good first issueStatus: ready ✔️Topic: rename ♻️Topic: style ✏️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions