pub struct BoxElem {
pub name: String,
pub orientation: Orientation,
pub argument: f64,
pub spread: BoxSpread,
pub box_width: f64,
pub whisker_width: f64,
pub stroke: Stroke,
pub fill: Color32,
}
Expand description
Fields
name: String
Name of plot element in the diagram (annotated by default formatter).
orientation: Orientation
Which direction the box faces in the diagram.
argument: f64
Position on the argument (input) axis – X if vertical, Y if horizontal.
spread: BoxSpread
Values of the box
box_width: f64
Thickness of the box
whisker_width: f64
Width of the whisker at minimum/maximum
stroke: Stroke
Line width and color
fill: Color32
Fill color
Implementations
sourceimpl BoxElem
impl BoxElem
sourcepub fn whisker_width(self, width: f64) -> BoxElem
pub fn whisker_width(self, width: f64) -> BoxElem
Set the whisker width.
sourcepub fn vertical(self) -> BoxElem
pub fn vertical(self) -> BoxElem
Set orientation of the element as vertical. Argument axis is X.
sourcepub fn horizontal(self) -> BoxElem
pub fn horizontal(self) -> BoxElem
Set orientation of the element as horizontal. Argument axis is Y.
Trait Implementations
impl StructuralPartialEq for BoxElem
Auto Trait Implementations
impl RefUnwindSafe for BoxElem
impl Send for BoxElem
impl Sync for BoxElem
impl Unpin for BoxElem
impl UnwindSafe for BoxElem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more