annotate_plot
Annotate existing plots with lines, bands, text, or markers to mark thresholds, highlight regions, or add reference labels.
Instructions
Add annotations and overlays to an existing plot.
Useful for marking thresholds, highlighting regions, or adding reference lines and labels.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position for text/point | |
| y | No | Y position for text/point | |
| color | No | Color for the annotation (default 'red') | red |
| label | No | Text label (for text annotation, or as hover label) | |
| value | No | Value for hline/vline | |
| x_end | No | End x for vspan | |
| y_end | No | End y for hspan | |
| plot_id | Yes | ID of the plot to annotate | |
| x_start | No | Start x for vspan | |
| y_start | No | Start y for hspan | |
| line_dash | No | Line dash style — 'solid', 'dashed', 'dotted' (default 'dashed') | dashed |
| annotation_type | Yes | Type — 'hline' (horizontal), 'vline' (vertical), 'hspan' (horizontal band), 'vspan' (vertical band), 'text' (label), 'point' (marker) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |