Conversation
Contributor
Author
|
CI note: Clippy, Tests, examples, coverage, typos are green. Rustfmt and semver fail for reasons that also fail on current
This PR only adds public items ( |
iynehz
force-pushed
the
feat-qualitative-color-sequences
branch
from
September 23, 2026 19:33
cb21109 to
ba48ad9
Compare
Contributor
Author
|
Updated path to nest under the existing use plotly::color::qualitative;
qualitative::DARK24.get(0)
plotly::color::qualitative::ColorSequence
Still additive for |
Add plotly::color::qualitative with ColorSequence (len, modular get, reversed) and all 19 px.colors.qualitative sequences plus reversed *_R variants, sourced from plotly.py 7.1.0. Fixes plotly#396
iynehz
force-pushed
the
feat-qualitative-color-sequences
branch
from
September 23, 2026 20:00
ba48ad9 to
909742c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #396
Adds
plotly::color::qualitativewith aColorSequencetype and all 19 sequences from Plotly.py'splotly.colors.qualitativemodule (px.colors.qualitative), plus reversed (*_R) variants matching Python's*_rlists.API
ColorSequence—len(),is_empty(),const get()with modular indexing,reversed(),iter()(non-allocatingIter),as_vec(),IntoIteratorPLOTLY,D3,G10,T10,Alphabet,Dark24,Light24,Set1,Pastel1,Dark2,Set2,Pastel2,Set3,Antique,Bold,Pastel,Prism,Safe,Vivid(+ each*_R)ALL: &[(&str, ColorSequence)]and case-insensitiveby_name()for name-based lookupNotes
rgb(...)entries converted to equivalent uppercase#RRGGBBhexAccent/Pairedintentionally omitted (not re-exported byqualitative)Checks
cargo fmt(new file clean under nightly)cargo clippy --features all -- -D warnings -A deprecatedcargo test -p plotly(387 unit + 34 doc, including 9 new qualitative unit tests and 2 new doc examples)