pub struct SuperTitleParams { /* private fields */ }Expand description
Holds formatting parameters for the figure-level supertitle
Created independently and passed to Plot::set_super_title.
All fields are optional — only set values are emitted to the Python script.
Implementations§
Source§impl SuperTitleParams
impl SuperTitleParams
Sourcepub fn set_x(&mut self, value: f64) -> &mut Self
pub fn set_x(&mut self, value: f64) -> &mut Self
Sets the x location of the text in figure coordinates (default = 0.5)
Sourcepub fn set_y(&mut self, value: f64) -> &mut Self
pub fn set_y(&mut self, value: f64) -> &mut Self
Sets the y location of the text in figure coordinates (default = 0.98)
Sourcepub fn set_align_horizontal(&mut self, value: &str) -> &mut Self
pub fn set_align_horizontal(&mut self, value: &str) -> &mut Self
Sets the horizontal alignment of the text relative to (x, y) (default = “center”)
Options: “center”, “left”, “right”
Sourcepub fn set_align_vertical(&mut self, value: &str) -> &mut Self
pub fn set_align_vertical(&mut self, value: &str) -> &mut Self
Sets the vertical alignment of the text relative to (x, y) (default = “top”)
Options: “top”, “center”, “bottom”, “baseline”
Sourcepub fn set_fontsize(&mut self, value: f64) -> &mut Self
pub fn set_fontsize(&mut self, value: f64) -> &mut Self
Sets the font size of the text
Sourcepub fn set_fontweight(&mut self, value: f64) -> &mut Self
pub fn set_fontweight(&mut self, value: f64) -> &mut Self
Sets the font weight (numeric: 400 = normal, 700 = bold)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SuperTitleParams
impl RefUnwindSafe for SuperTitleParams
impl Send for SuperTitleParams
impl Sync for SuperTitleParams
impl Unpin for SuperTitleParams
impl UnsafeUnpin for SuperTitleParams
impl UnwindSafe for SuperTitleParams
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