plot_series
Visualize time series data by plotting one or multiple series with customizable labels, titles, and figure settings. Save plots as PNG, SVG, or WebP, or retrieve as base64 for integration.
Instructions
Plot one or more time series natively. Can save the plot to a specified path as a PNG file or return it as a base64 string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Resolution in dots per inch (default: 150). | |
| path | No | Optional local file path to save the plot (e.g., '/tmp/plot.png'). If omitted, returns base64. | |
| title | No | Optional title for the plot. | |
| labels | No | Optional list of labels corresponding to each data handle. | |
| figsize | No | Figure size as [width, height] in inches (default: [12, 6]). | |
| markers | No | Marker style(s) for data points (e.g., 'o', ['.', 'x']). | |
| x_label | No | Custom x-axis label. | |
| y_label | No | Custom y-axis label. | |
| data_handles | Yes | List of data handle IDs to plot (e.g., train, test, forecasts). | |
| image_format | No | Image output format: 'png' (default), 'svg', or 'webp'. | png |