Skip to main content

Plot Coordinates

KJNodes/experimental
PlotCoordinates

Plots coordinates to sequence of images using Matplotlib.

Example

JSON Example
{
  "class_type": "PlotCoordinates",
  "inputs": {
    "coordinates": "",
    "text": "title",
    "width": 512,
    "height": 512,
    "bbox_width": 128,
    "bbox_height": 128
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
coordinatesSTRINGrequired--
textSTRINGrequired-"title"
widthINTrequiredmin: 8, max: 4096, step: 8512
heightINTrequiredmin: 8, max: 4096, step: 8512
bbox_widthINTrequiredmin: 8, max: 4096, step: 8128
bbox_heightINTrequiredmin: 8, max: 4096, step: 8128
size_multiplierFLOAToptional-[1]

Outputs

IndexNameTypeIs ListConnection Reference
0imagesIMAGENo["{node_id}", 0]
1widthINTNo["{node_id}", 1]
2heightINTNo["{node_id}", 2]
3bbox_widthINTNo["{node_id}", 3]
4bbox_heightINTNo["{node_id}", 4]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this PlotCoordinates node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • images (IMAGE): ["5", 0]
  • width (INT): ["5", 1]
  • height (INT): ["5", 2]
Was this page helpful?