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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| matrix | NPARRAY | 2-D array (rows x columns). Size-1 axes are squeezed away, so an (N, 1, M) block charts as N x M. | |
| title | STRING | Heading drawn above the chart. Empty draws none. | |
| row_labelsopt | STRING | Name per row, as a JSON list or ';' / newline / ',' separated text. Missing names fall back to 'row 0', 'row 1', ... | |
| col_labelsopt | STRING | Name per column, same formats. Missing names fall back to 'col 0', 'col 1', ... | |
| show_valuesopt | BOOLEAN | true | Print each cell's value inside it, so the table reads without hovering. Turn off for large matrices where the text would not fit. |
| decimalsopt | INT | 30–8 | Significant decimals for the printed cell values and the tooltip. |
| value_rangeopt | COMBO | auto (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_valueopt | FLOAT | 0.00-1000000000–1000000000 | Color scale minimum ('manual' range only). |
| max_valueopt | FLOAT | 1.00-1000000000–1000000000 | Color scale maximum ('manual' range only). |
| paletteopt | COMBO | viridis | Color ramp. 'viridis' matches 'Preview CV Array''s heatmap render; 'coolwarm (diverging)' belongs with 'symmetric around zero'. |
| themeopt | COMBO | dark | Chart colors. 'light' is for a PNG that will be pasted into a document. |
| 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 charted cells. |