Skip to main content

plot_values_with_range

Function plot_values_with_range 

Source
pub fn plot_values_with_range(
    values: &[f64],
    y_min: f64,
    y_max: f64,
    title: Option<&str>,
    width: Option<usize>,
    height: Option<usize>,
) -> Result<(), Box<dyn Error>>
Expand description

Plot with custom Y-axis range (useful when you want to set your own bounds) Note: textplots doesn’t support custom Y ranges, so this clips the data to the range