origin_legend_set
Rebuild a graph layer's legend to match current plots, choose placement, and show or hide it. Use after adding or changing plot series.
Instructions
Rebuild a layer's legend, and optionally place or hide it.
Origin generates its legend from the plots present at the moment it is refreshed rather than storing it, so a legend showing the wrong series is almost always one that has not been refreshed since the plots changed. Call this after adding plots.
position is one of top_left, top_right, bottom_left, bottom_right.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graph": "<graph>"
},
"name": "origin_legend_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | No | ||
| graph | Yes | ||
| layer | No | ||
| position | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||