Skip to content

[ENH] Change mpl.color_sequences['tab10'] to return color names instead of RGB #30210

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vagnermcj
Copy link
Contributor

@vagnermcj vagnermcj commented Jun 24, 2025

PR summary

Changed mpl.color_sequences['tab10'] to return color names instead of RGB tuples

@vagnermcj vagnermcj changed the title [ENH] Changeu mpl.color_sequences['tab10'] to return color names instead of RGB [ENH] Change mpl.color_sequences['tab10'] to return color names instead of RGB Jun 24, 2025
@QuLogic
Copy link
Member

QuLogic commented Jun 26, 2025

This looks good, but it probably needs a documentation note as mentioned in #29922 (comment)

@timhoffm
Copy link
Member

There are (very few) cases that rely on the numeric representation. We shouldn’t break them without warning. Either

  • we add a deprecation now and defer the code change 1-2 releases
  • or we dig up the cases in GitHub and notify them there (should be less than a handful)

In #29922 (comment) I was a bit terse we with “deprecation notice” but what I meant was the first option, and only stating this under deprecation in the API notes (not issuing a runtime warning).

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

Successfully merging this pull request may close these issues.

[ENH]: tab10 color sequence should return the tab-named colors
3 participants