#[non_exhaustive]pub struct LineplotOptions {Show 15 fields
pub title: Option<String>,
pub xlabel: Option<String>,
pub ylabel: Option<String>,
pub border: BorderType,
pub margin: u16,
pub padding: u16,
pub labels: bool,
pub width: usize,
pub height: usize,
pub xlim: (f64, f64),
pub ylim: (f64, f64),
pub canvas: CanvasType,
pub grid: bool,
pub color: Option<TermColor>,
pub name: Option<String>,
}Expand description
Configuration for lineplot, scatterplot, stairs, and density construction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>Plot title displayed above the chart.
xlabel: Option<String>Label below the x-axis.
ylabel: Option<String>Label to the left of the y-axis.
border: BorderTypeBorder style (default: BorderType::Solid).
margin: u16Left margin in characters (default: 3).
padding: u16Padding between border and content (default: 1).
labels: boolWhether to show axis labels (default: true).
width: usizeCanvas width in characters (default: 40, minimum: 5).
height: usizeCanvas height in characters (default: 15, minimum: 2).
xlim: (f64, f64)Explicit x-axis limits. (0.0, 0.0) means auto-detect from data.
ylim: (f64, f64)Explicit y-axis limits. (0.0, 0.0) means auto-detect from data.
canvas: CanvasTypeCanvas rendering backend (default: CanvasType::Braille).
grid: boolWhether to draw grid lines on the zero axes (default: true).
color: Option<TermColor>Series color. None uses the auto-cycling palette.
name: Option<String>Series name shown in the legend annotation.
Trait Implementations§
Source§impl Clone for LineplotOptions
impl Clone for LineplotOptions
Source§fn clone(&self) -> LineplotOptions
fn clone(&self) -> LineplotOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more