pub struct VLine { /* private fields */ }
Expand description
A vertical line in a plot, filling the full width
Implementations
sourceimpl VLine
impl VLine
pub fn new(x: impl Into<f64>) -> VLine
sourcepub fn highlight(self, highlight: bool) -> VLine
pub fn highlight(self, highlight: bool) -> VLine
Highlight this line in the plot by scaling up the line.
sourcepub fn width(self, width: impl Into<f32>) -> VLine
pub fn width(self, width: impl Into<f32>) -> VLine
Stroke width. A high value means the plot thickens.
sourcepub fn color(self, color: impl Into<Color32>) -> VLine
pub fn color(self, color: impl Into<Color32>) -> VLine
Stroke color. Default is Color32::TRANSPARENT
which means a color will be auto-assigned.
Trait Implementations
impl StructuralPartialEq for VLine
Auto Trait Implementations
impl RefUnwindSafe for VLine
impl Send for VLine
impl Sync for VLine
impl Unpin for VLine
impl UnwindSafe for VLine
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