Struct net_ensembles::sampling::heatmap::GnuplotPointSettings
source · [−]pub struct GnuplotPointSettings {
pub color: ColorRGB,
pub frame: bool,
pub frame_color: ColorRGB,
/* private fields */
}
Expand description
Defines gnuplot point
- Note that most of the fields are public and can be accessed directly
Fields
color: ColorRGB
Color of the point
frame: bool
should the point have a frame?
frame_color: ColorRGB
Which color should the frame be?
Implementations
sourceimpl GnuplotPointSettings
impl GnuplotPointSettings
sourcepub fn new() -> GnuplotPointSettings
pub fn new() -> GnuplotPointSettings
Create a new instance of GnuplotPointSettings
- same as GnuplotPointSettings::default()
sourcepub fn color(&mut self, color: ColorRGB) -> &mut GnuplotPointSettings
pub fn color(&mut self, color: ColorRGB) -> &mut GnuplotPointSettings
Choose the color for the point
- default color is blue
sourcepub fn size(&mut self, size: f32) -> &mut GnuplotPointSettings
pub fn size(&mut self, size: f32) -> &mut GnuplotPointSettings
Choose the size of the point
- size has to be finite
- size has to be >= 0.0
Otherwise the old size will be silently kept
sourcepub fn get_size(&self) -> f32
pub fn get_size(&self) -> f32
Get the point size
Note: allmost all other fields are public!
sourcepub fn frame(&mut self, active: bool) -> &mut GnuplotPointSettings
pub fn frame(&mut self, active: bool) -> &mut GnuplotPointSettings
Should there be a frame around the point ? This is good for better visibility if you do not know the color of the background, or the background color changes
sourcepub fn frame_color(&mut self, color: ColorRGB) -> &mut GnuplotPointSettings
pub fn frame_color(&mut self, color: ColorRGB) -> &mut GnuplotPointSettings
Which color should the frame have?
*default color is black
sourcepub fn legend<S>(&mut self, legend: S) -> &mut GnuplotPointSettingswhere
S: Into<String>,
pub fn legend<S>(&mut self, legend: S) -> &mut GnuplotPointSettingswhere
S: Into<String>,
Change the legend entry
- This will be the title of the legend for this point(s)
- will be set to “Invalid character encountered” if it contains a “ or newline character
sourcepub fn get_legend(&self) -> &str
pub fn get_legend(&self) -> &str
Get entry for legend
This will be the title of the legend for this point(s)
Trait Implementations
sourceimpl Clone for GnuplotPointSettings
impl Clone for GnuplotPointSettings
sourcefn clone(&self) -> GnuplotPointSettings
fn clone(&self) -> GnuplotPointSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GnuplotPointSettings
impl Debug for GnuplotPointSettings
sourceimpl Default for GnuplotPointSettings
impl Default for GnuplotPointSettings
sourcefn default() -> GnuplotPointSettings
fn default() -> GnuplotPointSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GnuplotPointSettings
impl<'de> Deserialize<'de> for GnuplotPointSettings
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotPointSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GnuplotPointSettings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for GnuplotPointSettings
impl Serialize for GnuplotPointSettings
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 GnuplotPointSettings
impl Send for GnuplotPointSettings
impl Sync for GnuplotPointSettings
impl Unpin for GnuplotPointSettings
impl UnwindSafe for GnuplotPointSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more