Nodes/cgem156-ComfyUI๐ŸŒ/Preview XY ๐ŸŒ
ComfyUI Node

Preview XY ๐ŸŒ

The closest thing ComfyUI has to A1111's built-in XYZ Plot

By laksjdjfยทCreated 2 years agoยทUpdated about a month agoยท 93
Preview XY ๐ŸŒ
  • images
  • xy_list

    Automatic1111 ships an XYZ Plot script out of the box - sweep two parameters, get a labeled grid comparing every combination. ComfyUI has never had a native equivalent; you build the sweep yourself out of nodes. Preview XY is the display half of cgem156's answer to that gap: feed it a batch of images plus a value list from the pack's other lora_xy nodes, and it renders them as a labeled grid right in the node - no extra wiring needed to see which setting produced which result.

    What it needs

    Two required inputs: images (an IMAGE batch - the results of your sweep) and xy_list (an XY_LIST, a custom type produced elsewhere in this same lora_xy category - most likely by whatever builds the grid of values that feeds SamplerCustomXY, another node in this pack). This node is an output node with no outputs of its own - it exists purely to render the grid, nothing to wire onward from it.

    Worth being upfront about a gap here: xy_list's producer isn't part of this batch of node writeups, so its exact parameters aren't something this article has verified directly. What's clear from the type system is the shape of the flow: something in lora_xy builds an XY_LIST (presumably a sweep over LoRA strengths, or another parameter, laid out in a grid), SamplerCustomXY runs the actual sampling across that grid using an XY_MODEL, and PreviewXY is the last step that turns the resulting image batch plus the same xy_list into a labeled comparison.

    Using it

    Build your sweep with this pack's SamplerCustomXY (or whatever generates the XY_LIST you're using), decode the resulting latent batch to images, and feed both the image batch and the same xy_list into this node. The image batch size needs to match the sweep's total cell count - one image per grid position - or the labeling won't line up.

    Installing it

    Via ComfyUI Manager: search cgem156-ComfyUI, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/laksjdjf/cgem156-ComfyUI
    

    Restart afterward. No model downloads - a pure display node.

    Common issues & troubleshooting

    Grid looks garbled, mislabeled, or blank. The most likely cause is a mismatch between your image batch size and the xy_list's expected cell count - double-check whatever built the xy_list produced the number of combinations you think it did, and that your image batch wasn't accidentally trimmed or reordered somewhere upstream.

    Nothing renders at all. Confirm both images and xy_list are actually connected - this node needs both to do anything; it doesn't generate either one itself.

    You're trying to use this without the rest of the lora_xy toolchain. This node is the display step of a three-part flow, not something that works standalone - you need whatever in this pack builds the XY_LIST first, and typically SamplerCustomXY to actually run the sweep. If you were searching for "how do I do an XYZ plot in ComfyUI" generally, this pack is one option, but the tooling for it is sparse and self-assembled rather than a polished, documented feature - expect to piece it together from the node names rather than follow a guide.

    Categorycgem156 ๐ŸŒ/lora_xy

    Inputs (2)

    NameTypeDefaultDescription
    imagesIMAGEโ€”
    xy_listXY_LISTโ€”

    Outputs (0)

    No outputs