plot_graph
Generate Desmos-style 2D graphs from LaTeX expressions as PNG images for scientific and engineering plots, with support for curves, inequalities, labeled points, colors, and custom bounds.
Instructions
Generate a Desmos-style 2D graph from mathematical expressions. Returns a PNG image. Supports functions, parametric curves, inequalities, points with labels, custom colors, axis labels, and viewport bounds. Ideal for scientific/engineering plots.
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": {
"expressions": "<expressions>"
},
"name": "plot_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Image width in pixels (default 800) | |
| bounds | No | Viewport bounds. If omitted, Desmos auto-fits. | |
| height | No | Image height in pixels (default 800) | |
| points | No | Individual labeled points to plot | |
| showGrid | No | Show grid lines (default true) | |
| degreeMode | No | Use degrees instead of radians (default false) | |
| xAxisLabel | No | Label for the x-axis | |
| yAxisLabel | No | Label for the y-axis | |
| expressions | Yes | List of mathematical expressions to plot |