From fbc19df6fbcd593d19b69134a65fd84c1bfc01ad Mon Sep 17 00:00:00 2001 From: gillian Date: Tue, 14 Jul 2026 14:31:11 -0400 Subject: [PATCH] fix: correct annotation frequency label and tertiary annotation color freq_lower_edge/freq_upper_edge are plain Hz values (no unit conversion happens before plotting), so the axis was mislabeled "Frequency (MHz)". Also lighten the palette's tertiary color, which was nearly indistinguishable from the primary blue in the legend. --- src/ria_toolkit_oss/view/view_signal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ria_toolkit_oss/view/view_signal.py b/src/ria_toolkit_oss/view/view_signal.py index 875df85..3d3d615 100644 --- a/src/ria_toolkit_oss/view/view_signal.py +++ b/src/ria_toolkit_oss/view/view_signal.py @@ -64,7 +64,7 @@ def view_annotations( annotations = recording.annotations # 2. Setup Color Mapping - palette = ["#2196F3", "#9C27B0", "#64B5F6", "#7B1FA2", "#5C6BC0", "#CE93D8", "#1565C0", "#7C4DFF"] + palette = ["#2196F3", "#9C27B0", "#EAF4FE", "#7B1FA2", "#5C6BC0", "#CE93D8", "#1565C0", "#7C4DFF"] unique_labels = sorted(list(set(ann.label for ann in annotations if ann.label))) label_to_color = {label: palette[i % len(palette)] for i, label in enumerate(unique_labels)} @@ -104,7 +104,7 @@ def view_annotations( ax.set_title(title, fontsize=title_fontsize, pad=20) ax.set_xlabel("Time (s)", fontsize=12) - ax.set_ylabel("Frequency (MHz)", fontsize=12) + ax.set_ylabel("Frequency (Hz)", fontsize=12) ax.grid(alpha=0.1) output_path, _ = set_path(output_path=output_path)