plot_signal
Generate interactive time-domain plots from CSV signal files to inspect quality, identify anomalies, and visualize transients for predictive maintenance.
Instructions
Generate interactive time-domain signal plot.
Creates an interactive HTML plot showing the signal in the time domain.
Useful for inspecting signal quality, identifying anomalies, and visualizing transients.
Args:
signal_file: Name of the CSV file in data/signals/
sampling_rate: Sampling frequency in Hz (default: 10000)
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
Example:
plot_signal(
"bearing_signal.csv",
sampling_rate=10000,
time_range=[0.1, 0.3], # Zoom on 100-300 ms
show_statistics=True
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal_file | Yes | ||
| sampling_rate | No | ||
| time_range | No | ||
| show_statistics | No | ||
| title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |