Skip to content

Commit 909742c

Browse files
committed
Add ColorSequence and Plotly Express qualitative color sequences
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 #396
1 parent 00fe051 commit 909742c

3 files changed

Lines changed: 473 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
2020
- [[#422](https://github.com/plotly/plotly.rs/issues/422)] Add `Indicator`, `Histogram2d`, `Icicle` trace types
2121
- [[#425](https://github.com/plotly/plotly.rs/issues/425)] Add `Splom` and `Parcats` trace types (scatter-plot matrix and parallel categories)
2222
- [[#432](https://github.com/plotly/plotly.rs/issues/432)] Add `Funnel` and `Waterfall` trace types
23+
- [[#396](https://github.com/plotly/plotly.rs/issues/396)] Add `ColorSequence` and Plotly Express qualitative color sequences (`plotly::color::qualitative`), including reversed (`*_R`) variants
2324

2425
### Changed
2526

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
pub mod qualitative;
2+
13
use std::error::Error;
24
use std::fmt;
35
use std::num::{ParseFloatError, ParseIntError};
@@ -20,6 +22,9 @@ use std::str::FromStr;
2022
/// to their own requirements. On the whole, that should be largely unnecessary
2123
/// given the functionality already provided within this module.
2224
///
25+
/// Discrete color sequences from Plotly Express are available in the
26+
/// [`qualitative`] module.
27+
///
2328
/// [`CSS color formats`]: <https://www.w3schools.com/cssref/css_colors_legal.asp>
2429
/// [`predefined colors`]: <https://www.w3schools.com/cssref/css_colors.asp>
2530
use dyn_clone::DynClone;

0 commit comments

Comments
 (0)