export_graph
Export an Origin Pro graph to a PNG, JPG, TIF, or BMP image file by specifying the graph name and output path.
Instructions
Export a graph to an image file.
Uses Origin's CopyPage + clipboard, so the Windows clipboard contents are replaced during export. Image size is determined by the Origin page (width/height/dpi are accepted but have no effect).
Args: graph_name: Graph name to export file_path: Output path (Windows or WSL style, e.g. C:\Users\me\fig1.png or /mnt/c/Users/me/fig1.png). Missing directories are created. format: Image format: png, jpg, tif, bmp. Used as the file extension when file_path has none. width: Unused (kept for API compatibility; size determined by Origin page) height: Unused (kept for API compatibility) dpi: Unused (kept for API compatibility)
Returns: Path to exported file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| file_path | Yes | ||
| format | No | png | |
| width | No | ||
| height | No | ||
| dpi | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |