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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | No | ||
| graph | Yes | ||
| layer | No | ||
| position | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||