save_graph_template
Save any graph as a reusable template in .otpu or legacy .otp format to apply consistent styling across projects.
Instructions
Save a graph as a reusable Origin template (.otpu/.otp).
Args: graph_name: Graph to save as a template file_path: Output path (Windows or WSL style). The extension is forced to .otpu (or .otp when old_format=True). old_format: Save the legacy .otp format (loadable in Origin 2017 and earlier) instead of the modern .otpu
Returns: Path to the saved template
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| file_path | Yes | ||
| old_format | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |