Struct plotpy::SuperTitleParams
source · pub struct SuperTitleParams { /* private fields */ }
Expand description
Holds parameters for the SuperTitle
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 of the text
Trait Implementations§
source§impl Clone for SuperTitleParams
impl Clone for SuperTitleParams
source§fn clone(&self) -> SuperTitleParams
fn clone(&self) -> SuperTitleParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SuperTitleParams
impl RefUnwindSafe for SuperTitleParams
impl Send for SuperTitleParams
impl Sync for SuperTitleParams
impl Unpin 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
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
)