pub struct DarkMode { /* private fields */ }Expand description
Implements a dark mode enabler for plots
Warning; This instance must be the first to be added to the Plot object,
Implementations§
Source§impl DarkMode
impl DarkMode
Sourcepub fn new() -> Self
pub fn new() -> Self
Allocates a new instance
Warning; This instance must be the first to be added to the Plot object,
Sourcepub fn set_dark_background(&mut self)
pub fn set_dark_background(&mut self)
Sets the Matplotlib native dark mode (dark_background)
Sourcepub fn set_mathematica(&mut self)
pub fn set_mathematica(&mut self)
Sets the Mathematica-like dark mode
Important: This mode requires cycler package in Python environment.
Sourcepub fn set_mocha(&mut self)
pub fn set_mocha(&mut self)
Important: This mode requires cycler package in Python environment.
Sourcepub fn set_nordic(&mut self)
pub fn set_nordic(&mut self)
Sets an alternative dark mode (“Nordic Night” or “Material Dark”)
Important: This mode requires cycler package in Python environment.
Trait Implementations§
Source§impl GraphMaker for DarkMode
impl GraphMaker for DarkMode
Source§fn get_buffer<'a>(&'a self) -> &'a String
fn get_buffer<'a>(&'a self) -> &'a String
Returns the text buffer with Python3 commands
Source§fn clear_buffer(&mut self)
fn clear_buffer(&mut self)
Clear the text buffer with Python commands
Auto Trait Implementations§
impl Freeze for DarkMode
impl RefUnwindSafe for DarkMode
impl Send for DarkMode
impl Sync for DarkMode
impl Unpin for DarkMode
impl UnwindSafe for DarkMode
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