API ReferenceGE Extensionsflowgraphnodesdebug
Multi Graph
- **Name:** `Multi Graph`
Overview
- Name:
Multi Graph - Category:
repeat_instant - File:
lua/ge/extensions/flowgraph/nodes/debug/drawGraph.lua - Pattern: Class-based (
C = {}, returns_flowgraph_createNode(C))
Description
Draws multiple data lines in the same graph within the flowgraph editor. Supports a configurable number of input value pins, each plotted as a separate colored line using rainbow coloring. Graph auto-scales to data range.
Pin Schema
Dynamic Input Pins
Pins are created dynamically based on the count data property:
| Pin | Type | Description |
|---|---|---|
value1..valueN | number | Data values to plot (one line per pin) |
Properties
| Property | Default | Description |
|---|---|---|
count | 1 | Number of data input lines |
scaleMin | 0 | Minimum Y-axis scale (auto-adjusts downward) |
scaleMax | 1 | Maximum Y-axis scale (auto-adjusts upward) |
Behavior
work()reads all connected number input pins and appends values to rolling data buffers (max 400 samples). Auto-scales min/max to data range.drawMiddle()manages dynamic pin count and renders the multi-line plot viaim.PlotMultiLines()in a 400×300 area.updatePins()adds/removes input pins to match the configured count and resets graph data.resetGraphData()rebuilds labels, rainbow colors, and data buffers from connected pins.- Graph data uses FIFO buffers - oldest samples are dropped when the 400-sample limit is reached.
Key APIs Used
im.PlotMultiLines()- multi-line plot renderingrainbowColor()- generates distinct colors per line
Tags
#flowgraph #node #ge #debug #draw #graph #data
Additional Exports
init()
onLinkDeleted()
onLink()
onUnlink()
-
name-string- (see source) -
icon-any- (see source) -
description-string- (see source) -
category-string- (see source) -
pinSchema-table- (see source) -
tags-table- (see source)
See Also
- AI Debug Display - Related reference
- Camera Mouse Raycast - Related reference
- Comment - Related reference
- FlowGraph Guide - Guide