plotlars_core/components/palette.rs
1///
2///
3/// # Example
4///
5/// ```rust
6/// use polars::prelude::*;
7/// use plotlars::{ColorBar, HeatMap, Palette, Plot, Text, ValueExponent};
8///
9/// let dataset = LazyCsvReader::new(PlRefPath::new("data/heatmap.csv"))
10/// .finish()
11/// .unwrap()
12/// .collect()
13/// .unwrap();
14///
15/// HeatMap::builder()
16/// .data(&dataset)
17/// .x("x")
18/// .y("y")
19/// .z("z")
20/// .color_bar(
21/// &ColorBar::new()
22/// .length(290)
23/// .value_exponent(ValueExponent::None)
24/// .separate_thousands(true)
25/// .tick_length(5)
26/// .tick_step(2500.0)
27/// )
28/// .color_scale(Palette::Portland)
29/// .build()
30/// .plot();
31/// ```
32///
33/// 
34#[derive(Clone, Copy)]
35pub enum Palette {
36 Greys,
37 YlGnBu,
38 Greens,
39 YlOrRd,
40 Bluered,
41 RdBu,
42 Reds,
43 Blues,
44 Picnic,
45 Rainbow,
46 Portland,
47 Jet,
48 Hot,
49 Blackbody,
50 Earth,
51 Electric,
52 Viridis,
53 Cividis,
54}