pub struct Margin { /* private fields */ }
Implementations§
Source§impl Margin
impl Margin
Sourcepub fn pad(&mut self, pad: f64) -> &mut Self
pub fn pad(&mut self, pad: f64) -> &mut Self
Sets the amount of padding (in px) between the plotting area and the axis lines
default: 0
Sourcepub fn autoexpand(&mut self, autoexpand: bool) -> &mut Self
pub fn autoexpand(&mut self, autoexpand: bool) -> &mut Self
Turns on/off margin expansion computations. Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults.
default: true
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Margin
impl RefUnwindSafe for Margin
impl Send for Margin
impl Sync for Margin
impl Unpin for Margin
impl UnwindSafe for Margin
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