ComfyUI Node: XY Plot

Class Name

XY Plot

Category
Efficiency Nodes/Scripts
Author
jags111 (Account age: 3922days)
Extension
Efficiency Nodes for ComfyUI Version 2.0+
Latest Updated
2024-08-07
Github Stars
0.83K

How to Install Efficiency Nodes for ComfyUI Version 2.0+

Install this extension via the ComfyUI Manager by searching for Efficiency Nodes for ComfyUI Version 2.0+
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Efficiency Nodes for ComfyUI Version 2.0+ in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

XY Plot Description

Facilitates visualization and analysis of parameters in grid format for AI-generated art experimentation and optimization.

XY Plot:

The XY Plot node is designed to facilitate the visualization and analysis of various parameters in a grid format, allowing you to compare different values and their effects on your AI-generated art. This node is particularly useful for artists who want to experiment with multiple settings, such as different samplers, checkpoints, or LoRA models, and observe the outcomes in a structured manner. By plotting values along the X and Y axes, you can easily identify trends, optimize your configurations, and enhance the efficiency of your creative process. The node supports a variety of plot types, including ControlNet and Prompt S/R, making it a versatile tool for comprehensive parameter exploration.

XY Plot Input Parameters:

grid_spacing

This parameter determines the spacing between the grid cells in the XY plot. Adjusting the grid spacing can help you better visualize the differences between each plotted value. The default value is typically set to a standard spacing that balances clarity and compactness.

XY_flip

This boolean parameter allows you to flip the X and Y axes of the plot. Flipping the axes can be useful when you want to change the perspective of your analysis or when the default orientation does not provide the desired insights. The default value is False.

Y_label_orientation

This parameter controls the orientation of the labels on the Y-axis. You can choose between different orientations to ensure that the labels are readable and do not overlap with each other or the plot elements. The default orientation is usually set to vertical.

cache_models

This boolean parameter indicates whether the models used in the plot should be cached. Caching models can significantly speed up the plotting process, especially when dealing with large datasets or complex models. The default value is True.

ksampler_output_image

This parameter specifies the output image generated by the ksampler. It is used as a reference for plotting and comparing different values. The default value is typically the most recent output image from the ksampler.

my_unique_id

This parameter is a unique identifier for the plot. It helps in distinguishing between different plots and ensures that the results are correctly associated with their respective configurations. The default value is usually a randomly generated unique string.

dependencies

This optional parameter lists any dependencies required for the plot. Dependencies can include specific models, libraries, or other resources needed to generate the plot. Providing this information ensures that all necessary components are available for successful execution.

X

This parameter defines the values to be plotted along the X-axis. It can include a range of values, such as different samplers, checkpoints, or other relevant parameters. The default value is typically an array of values to be compared.

Y

This parameter defines the values to be plotted along the Y-axis. Similar to the X parameter, it can include a range of values for comparison. The default value is typically an array of values to be compared.

XY Plot Output Parameters:

x_entry

This output parameter contains the plotted values for the X-axis. It includes the type of values plotted and the corresponding data, which can be used for further analysis or visualization.

y_entry

This output parameter contains the plotted values for the Y-axis. Similar to the x_entry, it includes the type of values plotted and the corresponding data, which can be used for further analysis or visualization.

XY Plot Usage Tips:

  • Experiment with different grid spacings to find the optimal balance between clarity and compactness for your specific use case.
  • Use the XY_flip parameter to change the perspective of your analysis and gain new insights from different orientations.
  • Ensure that the Y_label_orientation is set to a readable format to avoid overlapping labels and improve the overall readability of the plot.
  • Enable caching of models with the cache_models parameter to speed up the plotting process, especially when working with large datasets or complex models.
  • Utilize the unique identifier (my_unique_id) to keep track of different plots and their respective configurations, ensuring accurate association of results.

XY Plot Common Errors and Solutions:

XY Plot Error: '<value>' is not a valid batch count.

  • Explanation: This error occurs when the length of the plot_value array is not equal to 1 for a "Seeds++ Batch" plot type.
  • Solution: Ensure that the plot_value array contains exactly one element when using the "Seeds++ Batch" plot type.

XY Plot Error: Prompt S/R value can not be empty.

  • Explanation: This error occurs when the plot_value array for "Positive Prompt S/R" or "Negative Prompt S/R" contains an empty value.
  • Solution: Ensure that the plot_value array contains non-empty values for "Positive Prompt S/R" or "Negative Prompt S/R" plot types.

XY Plot Related Nodes

Go back to the extension to check out more related nodes.
Efficiency Nodes for ComfyUI Version 2.0+
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.