mpl_mcp_plot_chart
Visualize data as line, scatter, or bar charts using provided X and Y values. Customize labels, titles, colors, and grid settings for clear, actionable insights.
Instructions
Plots line/scatter/bar chart of given datavalues
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color | No | skyblue | |
dpi | No | ||
figsize | No | ||
grid | No | ||
labels | No | ||
legend | No | ||
plot_type | No | line | |
save | No | ||
title | No | ||
x_data | Yes | ||
xlabel | No | ||
y_data | Yes | ||
ylabel | No |
Input Schema (JSON Schema)
{
"properties": {
"color": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"default": "skyblue",
"title": "Color"
},
"dpi": {
"default": 200,
"title": "Dpi",
"type": "integer"
},
"figsize": {
"anyOf": [
{
"items": {
"type": "integer"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Figsize"
},
"grid": {
"default": true,
"title": "Grid",
"type": "boolean"
},
"labels": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Labels"
},
"legend": {
"default": false,
"title": "Legend",
"type": "boolean"
},
"plot_type": {
"default": "line",
"title": "Plot Type",
"type": "string"
},
"save": {
"default": false,
"title": "Save",
"type": "boolean"
},
"title": {
"default": "",
"title": "Title",
"type": "string"
},
"x_data": {
"items": {
"type": "number"
},
"title": "X Data",
"type": "array"
},
"xlabel": {
"default": "",
"title": "Xlabel",
"type": "string"
},
"y_data": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"items": {
"items": {
"type": "number"
},
"type": "array"
},
"type": "array"
}
],
"title": "Y Data"
},
"ylabel": {
"default": "",
"title": "Ylabel",
"type": "string"
}
},
"required": [
"x_data",
"y_data"
],
"type": "object"
}