pub fn plot_values(
values: &[f64],
title: Option<&str>,
width: Option<usize>,
height: Option<usize>,
) -> Result<(), Box<dyn Error>>Expand description
Plot any slice of f64 values with automatic dynamic scaling
§Arguments
values- The data values to plottitle- Optional title for the plotwidth- Optional plot width (default: 140)height- Optional plot height (default: 60)
§Examples
use rusty_tip::plotting::plot_values;
let data = vec![1e-12, 2e-12, 1.5e-12, 3e-12];
plot_values(&data, Some("Current Signal"), None, None).unwrap();