pub struct Colorbar {
pub opts: Vec<Opt>,
}
Expand description
Add a colorbar to the figure.
This command relies on the local variable im
being defined and set equal
to the output of a plotting command to which a color map can be applied
(e.g. Imshow
). The output of this command is stored in a local variable
cbar
.
cbar = fig.colorbar(im, ax=ax, **{opts})
Prelude: No
JSON data: None
Fields§
§opts: Vec<Opt>
Optional keyword arguments.
Implementations§
Trait Implementations§
Source§impl Matplotlib for Colorbar
impl Matplotlib for Colorbar
Source§fn is_prelude(&self) -> bool
fn is_prelude(&self) -> bool
Return
true
if self
should be considered as a prelude item, which
are execute in the order seen but before any non-prelude items.Source§impl MatplotlibOpts for Colorbar
impl MatplotlibOpts for Colorbar
impl StructuralPartialEq for Colorbar
Auto Trait Implementations§
impl Freeze for Colorbar
impl RefUnwindSafe for Colorbar
impl Send for Colorbar
impl Sync for Colorbar
impl Unpin for Colorbar
impl UnwindSafe for Colorbar
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