add_arrow
Add an arrow from one data coordinate to another on a graph, supporting single or double arrowheads with customizable size.
Instructions
Draw an arrow from (x1,y1) to (x2,y2) at data coordinates.
The arrowhead sits at the (x2,y2) end (and at the start too when double_headed). Set double_headed=False for a single-ended arrow.
Args: graph_name: Graph name x1, y1: Tail (start) point in data coordinates x2, y2: Head (end) point in data coordinates double_headed: Put an arrowhead on both ends head_size: Arrowhead size in points (default 10)
Returns: Success message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| x1 | Yes | ||
| y1 | Yes | ||
| x2 | Yes | ||
| y2 | Yes | ||
| double_headed | No | ||
| head_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |