Here is the table and graph display with my code


I would like to create a report where the contour plots are horizontal by different label, as below
A B C
(contour plot of A in time order) (contour plot of B in time order) (contour plot of C in time order)
But the display is like:
contour plot of A (4/30)
contour plot of C (4/30)
contour plot of B (5/2)
I thought as a for loop it should go from A to B to C, but the graphs are displayed by time first, not horizontal, and does not have label information in the title.
How to set the title and make the graph horizontal in an order of label? Thanks.
My code:
list = {"A","B","C"};
for (i=1, i <= N Items(list), i++,
obj = new window(Contour Plot(
dt << select where (:Label == list[i]) << invert row selection << exclude,
X( :X, :Y ),
Y( :VALUE ),
Show Data Points( 1 ),
Show Missing Data Points( 1 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Transform( "None" ),
By (:DATA_COLLECTION_TIME),
Automatic Recalc( 0 ),
dt << select where (:Label == list[i]) << invert row selection << unexclude,
);