pub fn legend_with_scale( palette: Palette, min: f64, max: f64, scale: ScaleMode, ) -> [(String, [u8; 3]); 3]