ComfyUI Node
CV Chart Scatter
Interactive x/y scatter of a point set (Apache ECharts): hover a point to read its coordinates and name, box-zoom into a cluster, save a PNG. This is the plot for point DATA - k-means centers, feature vectors, training samples, a keypoint spread - as opposed to 'CV Draw Points', which stamps points onto the image they came from. Optional classes color the points by cluster/label with a legend. Turn on 'y grows downwards' when the coordinates are pixel positions, so the plot matches the image.
CV Chart Scatter
- points
- classes
- spec
◄title►
◄class_names►
◄point_names►
◄y_downfalse►
◄point_size10►
◄x_axis_name►
◄y_axis_name►
◄palettecolorblind-safe (Okabe-Ito)►
◄themedark►
◄decimals3►
◄chart_height340►
Categoryimage/CV/plots
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| points | NPARRAY | (N, 2) x/y coordinates; (N, 1, 2) - the shape the point nodes emit - is accepted as-is. Empty is valid and draws an empty plot. | |
| title | STRING | Heading drawn above the chart. Empty draws none. | |
| classesopt | NPARRAY | Optional integer label per point (k-means labels, classifier predictions): points are grouped into one colored, legend-named series per distinct value. Length must match the point count. | |
| class_namesopt | STRING | Names for the class values, in ascending value order, as a JSON list or ';' / newline / ',' separated text. Defaults to 'class 0', ... | |
| point_namesopt | STRING | Name per point (same order as points), shown in the tooltip - use the same label list that names the matching image tiles. | |
| y_downopt | BOOLEAN | false | Flip the y axis so it grows downwards, matching image/pixel coordinates. Leave off for ordinary feature-space data. |
| point_sizeopt | INT | 102–60 | Marker diameter in pixels. |
| x_axis_nameopt | STRING | Caption under the x axis (what x measures). | |
| y_axis_nameopt | STRING | Caption beside the y axis (what y measures). | |
| paletteopt | COMBO | colorblind-safe (Okabe-Ito) | Class colors. The sampled ramps suit ORDERED classes (a sweep, a rank); the fixed palettes suit unordered ones. |
| themeopt | COMBO | dark | Chart colors. 'light' is for a PNG that will be pasted into a document. |
| decimalsopt | INT | 30–8 | Decimals shown for the coordinates in the tooltip. Trailing zeros are dropped. |
| chart_heightopt | INT | 340160–2048 | Height of the chart area inside the node, in pixels. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| spec | STRING | The chart definition as JSON - the exact option the frontend renders. Wire into 'Preview as Text' to read the plotted coordinates. |