Expand description
The configuration for a plot legend.
Fields
text_style: TextStyle
background_alpha: f32
position: Corner
Implementations
sourceimpl Legend
impl Legend
sourcepub fn text_style(self, style: TextStyle) -> Legend
pub fn text_style(self, style: TextStyle) -> Legend
Which text style to use for the legend. Default: TextStyle::Body
.
sourcepub fn background_alpha(self, alpha: f32) -> Legend
pub fn background_alpha(self, alpha: f32) -> Legend
The alpha of the legend background. Default: 0.75
.
Trait Implementations
impl StructuralPartialEq for Legend
Auto Trait Implementations
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnwindSafe for Legend
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