autoeq-plot 0.5.5

Plotly visualizations and report generation for AutoEQ
Documentation
/// Convert a curve name to its short abbreviated form
///
/// # Arguments
/// * `curve_name` - The full curve name to abbreviate
///
/// # Returns
/// * A string slice with the abbreviated curve name
pub fn shorten_curve_name(curve_name: &str) -> &str {
    match curve_name {
        "On Axis" => "ON",
        "Listening Window" => "LW",
        "Early Reflections" => "ER",
        "Sound Power" => "SP",
        "Estimated In-Room Response" => "PIR",
        "Early Reflections DI" => "ERDI",
        "Sound Power DI" => "SPDI",
        // Add more mappings as needed
        _ => curve_name, // Return original if no mapping found
    }
}