Data Science, Data Visualization, Data Analysis, Rust, Programming.
chart.draw_series(LineSeries::new( random_points.iter().map(|(x, y)| (*x, *y)), &RED )).unwrap() .label("𝜇=171.6, 𝜎=4.305") .legend(|(x,y)| PathElement::new(vec![(x,y), (x + 20,y)], &RED)); chart.configure_series_labels() .background_style(&WHITE) .border_style(&BLACK) .draw()?; Ok(())