pub struct PlotConfig {Show 16 fields
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub margin_left: i32,
pub margin_right: i32,
pub margin_top: i32,
pub margin_bottom: i32,
pub x_axis: AxisConfig,
pub y_axis: AxisConfig,
pub bg_color: Color,
pub line_color: Color,
pub axis_color: Color,
pub grid_color: Color,
pub text_color: Color,
pub label_color: Color,
}Expand description
Configuration complète du tracé graphique.
Cette structure définit tous les paramètres visuels et géométriques du graphique : position, taille, marges, axes, et palette de couleurs.
§Champs
x,y- Position du coin haut-gauche du graphique (en pixels)width,height- Dimensions du graphique (en pixels)margin_*- Marges internes pour les axes et labelsx_axis,y_axis- Configurations des deux axes*_color- Couleurs pour le fond, les lignes, axes, grille, texte, labels
Fields§
§x: i32§y: i32§width: i32§height: i32§margin_left: i32§margin_right: i32§margin_top: i32§margin_bottom: i32§x_axis: AxisConfig§y_axis: AxisConfig§bg_color: Color§line_color: Color§axis_color: Color§grid_color: Color§text_color: Color§label_color: ColorTrait Implementations§
Source§impl Clone for PlotConfig
impl Clone for PlotConfig
Source§fn clone(&self) -> PlotConfig
fn clone(&self) -> PlotConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlotConfig
impl Debug for PlotConfig
impl Copy for PlotConfig
Auto Trait Implementations§
impl Freeze for PlotConfig
impl RefUnwindSafe for PlotConfig
impl Send for PlotConfig
impl Sync for PlotConfig
impl Unpin for PlotConfig
impl UnsafeUnpin for PlotConfig
impl UnwindSafe for PlotConfig
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