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