pub fn palette_color(i: usize) -> RGBColorExpand description
Returns the i-th palette color, cycling through the seven non-black
Okabe–Ito hues. Deterministic, so the k-th series always gets the same
color across every chart type.
use plotters_statistical::style::palette_color;
use plotters::style::Color;
// Cycling wraps after seven hues: index 0 and index 7 map to the same color.
assert_eq!(palette_color(0).to_rgba(), palette_color(7).to_rgba());