Struct net_ensembles::sampling::heatmap::GnuplotSettings [−][src]
pub struct GnuplotSettings {
pub x_label: String,
pub x_axis: Option<GnuplotAxis>,
pub y_label: String,
pub y_axis: Option<GnuplotAxis>,
pub title: String,
pub terminal: GnuplotTerminal,
pub palette: GnuplotPalette,
pub size: String,
}
Expand description
Settings for gnuplot
- implements default
- implements builder pattern for itself
Fields
x_label: String
x label for gnuplot
x_axis: Option<GnuplotAxis>
how to format the labels of the x axis?
y_label: String
y label for gnuplot
y_axis: Option<GnuplotAxis>
how to format the labels of the y axis?
title: String
title for gnuplot
terminal: GnuplotTerminal
which terminal to use for gnuplot
palette: GnuplotPalette
Color palette for heatmap
size: String
Size of the terminal
- Anything gnuplot accepts (e.g. “2cm, 2.9cm”) is acceptable
Note
the code does not check, if your input for size
makes any sense
Implementations
Builder pattern - set size of terminal
- Anything gnuplot accepts (e.g. “2cm, 2.9cm”) is acceptable
Note
the code does not check, if your input for size
makes any sense
Create new, default, GnuplotSettings
Set x_axis - See GnuplotAxis or try it out
Set y_axis - See GnuplotAxis or try it out
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotSettings, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotSettings, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GnuplotSettings
impl Send for GnuplotSettings
impl Sync for GnuplotSettings
impl Unpin for GnuplotSettings
impl UnwindSafe for GnuplotSettings
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more