plot_set_properties
Set properties on a COMSOL plot group or specific plot feature; invalid names return the available properties for correction.
Instructions
Set properties on a plot group or on one of its plot features.
Invalid property names return the complete list of available properties read live from the node (use plot_properties to inspect first).
Args:
plotgroup: plot group tag.
properties: mapping of COMSOL property -> value, e.g.
{"colortable": "Rainbow", "colorlegend": "on"} on a feature,
or {"title": "My plot", "showlegends": "off"} on a group.
feature: plot feature tag (or nested "surf1/def1"). When
omitted the properties are set on the plot group itself.
model: model name/tag (None = current model).
Example: plot_set_properties("pg1", {"showlegends": "off", "title": "T [K]"}) plot_set_properties("pg1", {"colortable": "ThermalLight"}, feature="surf1")
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": {
"plotgroup": "<plotgroup>",
"properties": "<properties>"
},
"name": "plot_set_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| feature | No | ||
| plotgroup | Yes | ||
| properties | Yes |