export_graph_sized
Export a graph to an image with precise pixel dimensions. Choose width, height, and format (PNG, JPG, TIF, BMP) to control output size.
Instructions
Export a graph to an image at a chosen pixel size (expGraph).
Unlike export_graph (clipboard, page-size only), this controls the output pixel width/height directly.
Args: graph_name: Graph to export file_path: Output path (Windows or WSL style) width: Image width in pixels (default 1200) height: Image height in pixels (0 = keep aspect ratio) format: png, jpg, tif, or bmp
Returns: Path and pixel/byte size of the exported file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_name | Yes | ||
| file_path | Yes | ||
| width | No | ||
| height | No | ||
| format | No | png |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |