plot_signal
Generate interactive time-domain plots to inspect signal quality, identify anomalies, and visualize transients from stored vibration data.
Instructions
Generate interactive time-domain plot for a stored signal.
Creates an interactive HTML plot showing the signal in the time domain.
Useful for inspecting signal quality, identifying anomalies, and
visualizing transients. Requires the signal loaded via load_signal()
first; the sampling rate comes from the stored signal metadata.
Args:
signal_id: ID of the stored signal (from load_signal).
time_range: [start_time, end_time] in seconds to zoom on a portion (optional)
show_statistics: Show RMS, peak levels as horizontal lines (default: True)
title: Custom plot title (optional)
ctx: MCP context for progress/logging
Returns:
Path to generated HTML file
Raises:
ValueError: If the signal_id is not loaded, or the stored signal
has no sampling rate.
Example:
plot_signal(
"bearing_signal",
time_range=[0.1, 0.3], # Zoom on 100-300 ms
show_statistics=True
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| signal_id | Yes | ||
| time_range | No | ||
| show_statistics | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |