Scatter Plot
plot_scatterGenerate a scatter plot from two numeric data sets to visualize relationships, patterns, and correlation between variables.
Instructions
Create a scatter plot from data points (requires matplotlib).
Examples: plot_scatter([1, 2, 3, 4], [1, 4, 9, 16], title="Correlation Study") plot_scatter([1, 2, 3], [2, 4, 5], color='purple', point_size=100)
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": {
"x_data": "<x_data>",
"y_data": "<y_data>"
},
"name": "plot_scatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Point color (name or hex code, e.g., 'blue', '#2E86AB') | |
| title | No | Chart title string, e.g., 'Correlation Study' | Scatter Plot |
| x_data | Yes | X-axis data points, e.g., [1, 2, 3, 4] | |
| y_data | Yes | Y-axis data points, e.g., [1, 4, 9, 16] | |
| x_label | No | X-axis label, e.g., 'Variable X' | X |
| y_label | No | Y-axis label, e.g., 'Variable Y' | Y |
| point_size | No | Scatter point size in points^2, e.g., 50 |