pub enum Palette {
Show 18 variants
Greys,
YlGnBu,
Greens,
YlOrRd,
Bluered,
RdBu,
Reds,
Blues,
Picnic,
Rainbow,
Portland,
Jet,
Hot,
Blackbody,
Earth,
Electric,
Viridis,
Cividis,
}Expand description
§Example
use plotlars::{ColorBar, HeatMap, Palette, Plot, Text, ValueExponent};
let dataset = LazyCsvReader::new("../data/heatmap.csv")
.finish()
.unwrap()
.collect()
.unwrap();
HeatMap::builder()
.data(&dataset)
.x("x")
.y("y")
.z("z")
.color_bar(
&ColorBar::new()
.length(290)
.value_exponent(ValueExponent::None)
.separate_thousands(true)
.tick_length(5)
.tick_step(2500.0)
)
.color_scale(Palette::Portland)
.build()
.plot();
Variants§
Greys
YlGnBu
Greens
YlOrRd
Bluered
RdBu
Reds
Blues
Picnic
Rainbow
Portland
Jet
Hot
Blackbody
Earth
Electric
Viridis
Cividis
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnwindSafe for Palette
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more