Here is an example of taking your data and drawing a rectangle
Names Default To Here( 1 );
dt = New Table( "Untitled 18",
Add Rows( 4 ),
New Column( "dimension", Character, "Nominal", Set Values( {"X", "X", "Y", "Y"} ) ),
New Column( "min/max", Character, "Nominal", Set Values( {"min", "max", "min", "max"} ) ),
New Column( "value", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [1.1, 1.5, 0, 1.25] ) )
);
dtSplit = dt << Split( Split By( :dimension, :Name( "min/max" ) ), Split( :value ), Sort by Column Property );
New Window( "Example",
Graph Box(
Y Scale( 0, 4 ),
X Scale( 0, 4),
Pen Color( "Green" );
Pen Size( 2 );
For( i = 1, i <= N Rows( dtSplit ), i++,
Rect( dtSplit:X min[i], dtSplit:Y max[i], dtSplit:X max[i], dtSplit:Y min[i], 0 )
);
)
);
The Graph Box functions are all documented at:
Help==>Scripting Index==>Graph Box
Jim