Nodes/comfyui_cv/CV Chart Scatter
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
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)

NameTypeDefaultDescription
pointsNPARRAY(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.
titleSTRINGHeading drawn above the chart. Empty draws none.
classesoptNPARRAYOptional 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_namesoptSTRINGNames for the class values, in ascending value order, as a JSON list or ';' / newline / ',' separated text. Defaults to 'class 0', ...
point_namesoptSTRINGName per point (same order as points), shown in the tooltip - use the same label list that names the matching image tiles.
y_downoptBOOLEANfalseFlip the y axis so it grows downwards, matching image/pixel coordinates. Leave off for ordinary feature-space data.
point_sizeoptINT102–60Marker diameter in pixels.
x_axis_nameoptSTRINGCaption under the x axis (what x measures).
y_axis_nameoptSTRINGCaption beside the y axis (what y measures).
paletteoptCOMBOcolorblind-safe (Okabe-Ito)Class colors. The sampled ramps suit ORDERED classes (a sweep, a rank); the fixed palettes suit unordered ones.
themeoptCOMBOdarkChart colors. 'light' is for a PNG that will be pasted into a document.
decimalsoptINT30–8Decimals shown for the coordinates in the tooltip. Trailing zeros are dropped.
chart_heightoptINT340160–2048Height of the chart area inside the node, in pixels.

Outputs (1)

NameTypeDescription
specSTRINGThe chart definition as JSON - the exact option the frontend renders. Wire into 'Preview as Text' to read the plotted coordinates.