modify_plot
Modify an existing plot's title, colors, size, labels, and legend position. Returns updated PNG and HTML.
Instructions
Modify an existing plot's appearance. Returns updated PNG + HTML.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"plot_id": "<plot_id>"
},
"name": "modify_plot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmap | No | Colormap name (e.g. 'viridis', 'plasma', 'Set1') | |
| title | No | New title | |
| width | No | New width in pixels | |
| height | No | New height in pixels | |
| xlabel | No | X-axis label | |
| ylabel | No | Y-axis label | |
| plot_id | Yes | ID of the plot to modify | |
| color_by | No | Column to re-color by | |
| legend_position | No | Legend position (e.g. 'top_right', 'bottom_left') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |