pub struct Annotation {
pub label: String,
pub x: f64,
pub y: f64,
pub x_offset: f64,
pub y_offset: f64,
pub label_size_pt: f64,
pub dot_pt: f64,
pub color: Rgb,
pub background: bool,
}Expand description
A plot_annotation marker.
Fields§
§label: String§x: f64Axes-fraction coordinates of the dot.
y: f64§x_offset: f64Label offset in axes fractions, like upstream x_offset / y_offset.
y_offset: f64§label_size_pt: f64§dot_pt: f64Marker size in points (annotation_size).
color: Rgb§background: boolTrait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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