advPlot string
Turn a pasted list into an xyPlot axis in one go
- plot_text
advPlot string is the xyPlot generator for when your axis values are strings instead of numbers - LoRA names, sampler names, scheduler names, prompt fragments. Paste a delimited list into the text box, tell it which node and widget to target, and it emits the plot syntax that tests every entry. Where the range node sweeps numbers, this one grinds through whatever list you feed it.
The scenario that sells it: you want to grid-test five schedulers, or three LoRAs against the same prompt, or half a dozen sampler names. You already have the list - probably in a spreadsheet or a reddit comment. You don't want to reformat each one into [14:sampler_name='dpmpp_2m'] by hand. This node does the reformatting, including quoting and escaping.
How it works
Target node and widget like the other generators (dropdowns populate once the node's in a live graph). Then:
text- your list, one value per line by default.delimiter- default\n(newline). Change it to,or;if your list comes that way.replace_mode+search_string- a clever extra: turn the node on and each list value becomes a%search;replace%replacement applied to the widget's current value. So you can take an existing prompt and produce variants where one term is swapped per cell, instead of overwriting the whole widget.
label_type (Values / Title and Values / ID, Title and Values) sets the axis label style, matching the main xyPlot's v_label / tv_label / idtv_label options.
Output is plot_text, one axis worth of <n:v_label> + [nodeid:widget='value'] lines, and it's an output node so you can eyeball the generated syntax in its UI before running the grid.
Installing it
Part of tinyterraNodes:
cd ComfyUI/custom_nodes
git clone https://github.com/TinyTerra/ComfyUI_tinyterraNodes.git
or ComfyUI Manager β tinyterraNodes. No extra dependencies.
Gotchas
The delimiter is the trap: the default is literally the two characters backslash-n, and the node converts \n to a real newline - but if you paste a comma-separated list without changing the delimiter, you get one axis value that happens to contain commas. Empty lines are skipped, which is usually what you want but can silently shrink your grid if your list has trailing blanks. And replace_mode only makes sense for text-ish widgets - trying it on a numeric field produces odd results, since the search/replace operates on the widget's current value string. When in doubt, leave replace_mode off and give it a plain list.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| node | COMBO | 1 options: Connect to xyPlot for options | |
| widget | COMBO | 1 options: Select node for options | |
| replace_mode | BOOLEAN | false | β |
| search_string | STRING | β | |
| text | STRING | β | |
| delimiter | STRING | \n | β |
| label_type | COMBO | Values | 3 options: Values, Title and Values, ID, Title and Values |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| plot_text | STRING | β |