JSL - Creating a loop for custom distribution report

Jun 2, 2016 7:24 AM(3729 views)

Hello,

is there a way to create a place holder variable via array that can be substituted into the distribution report layer syntax? The code I have just loops the distribution giving me 10 windows with 10 graphs each with no frame adjustments. I want 1 window with 10 graphs that have had the frame size adjusted.

Re: JSL - Creating a loop for custom distribution report

Here is your script modified to place all of the distributions into a single window. I am not clear as to what you mean by "frame size adjusted". Could you please clarify that? Is it that you want all of the results shrunk down so they all fit within your display screen?

Re: JSL - Creating a loop for custom distribution report

Here is your script modified to place all of the distributions into a single window. I am not clear as to what you mean by "frame size adjusted". Could you please clarify that? Is it that you want all of the results shrunk down so they all fit within your display screen?

Re: JSL - Creating a loop for custom distribution report

As far as frame size adjuesments, I'm speaking about the part of the code that dictates the frame sizes should be 550, 50 and 550, 325 respectively. Currently, despite having the array variable listed, I'm still getting the default frame sizes of 227, 46 and 277, 110.

Re: JSL - Creating a loop for custom distribution report

The issue is, that you are attempting to change items within a list, and JMP looks at lists and says that a list is just a bunch of stuff, so it isn't going to touch it. So the method I use to build the lists to the form I want them is to use the Substitute function, and then when I have the list the way I want it, I have JMP evaluate what I have built. I can not be sure the code below is exactly what you need, but it should be close. to test out that the Substitute is working correctly, just run eliminate the "Eval" function that surrounds the Substitute command and just run the Substitute command by itself, and it will show the results in the log......

Re: JSL - Creating a loop for custom distribution report

This seems to adjust the first of my by variables but not the rest. I think there must be something wrong with the way I'm looping. Not only does it only adjust the first of my by variables, but I just noticed that in the single window I have 100 graphs rather than just the 10 I expected (the 10 x 10 I was getting just all in one window).