I'm trying to create a window that has several graph boxes being appended to help visualize the data that I'm processing. The setup I have is similar to this.
thisWindow = new window("Test Window");
for(x = 1, x <=nitems(thingsToDraw), x++,
thisWindow << append(
graph box(
(setup of X and Y axis, scales and such)
(for loops that create dynamic shapes in the graph box)
);
);
);The problem is, every time it appends a new graph box, it changes all the previous graph boxes to match the new one. I'm sure there's a way to isolate the graph boxes so they quit updating each other after appending new ones, but I can't figure it out. If I make the boxes all unique by sizing and setup, they don't seem to copy each other. But that defeats the purpose of the loop and the reason I'm trying to create them in the first place. I've tried setting this up as a function and calling it, as well as setting it up as an expression that's evaluated on the fly. Both results are the same.
I'm using JMP 14.