Nodes/comfyui_cv/CV Chart Matrix
ComfyUI Node

CV Chart Matrix

Interactive labelled heatmap of a 2-D array (Apache ECharts): every cell carries its row and column NAME and its exact value on hover, with a labelled color scale in the array's own units. Made for small tabular arrays where each cell means something - a confusion matrix, a per-pair score matrix, a method x metric table - which 'Preview CV Array' can only render as one anonymous pixel per cell. Prefer 'CV Chart Series' when one dimension is 1: a single column of scores reads better as labelled bars.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Chart Matrix
  • matrix
  • spec
title
row_labels
col_labels
show_valuestrue
decimals3
value_rangeauto (data range)
min_value0.00
max_value1.00
paletteviridis
themedark
chart_height340
Categoryimage/CV/plots

Inputs (12)

NameTypeDefaultDescription
matrixNPARRAY2-D array (rows x columns). Size-1 axes are squeezed away, so an (N, 1, M) block charts as N x M.
titleSTRINGHeading drawn above the chart. Empty draws none.
row_labelsoptSTRINGName per row, as a JSON list or ';' / newline / ',' separated text. Missing names fall back to 'row 0', 'row 1', ...
col_labelsoptSTRINGName per column, same formats. Missing names fall back to 'col 0', 'col 1', ...
show_valuesoptBOOLEANtruePrint each cell's value inside it, so the table reads without hovering. Turn off for large matrices where the text would not fit.
decimalsoptINT30–8Significant decimals for the printed cell values and the tooltip.
value_rangeoptCOMBOauto (data range)What the color scale spans. 'auto' uses the array's own min/max - which makes tiny differences look dramatic; 'manual' pins it to the meaningful range (0-1 for similarities) so the colors mean the same thing across runs; 'symmetric around zero' centers a diverging ramp on 0 for signed data (differences, correlations).
min_valueoptFLOAT0.00-1000000000–1000000000Color scale minimum ('manual' range only).
max_valueoptFLOAT1.00-1000000000–1000000000Color scale maximum ('manual' range only).
paletteoptCOMBOviridisColor ramp. 'viridis' matches 'Preview CV Array''s heatmap render; 'coolwarm (diverging)' belongs with 'symmetric around zero'.
themeoptCOMBOdarkChart colors. 'light' is for a PNG that will be pasted into a document.
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 charted cells.