Consider the following example script (a simplified version of my actual problem)
Names Default To Here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
//Scatt3D = dt << Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );
include ("plotScatterPlot.jsl");
Window ("Big Class - Scatterplot 3D of age, height")<< journal;
//Scatt3D << journalwhere plotScatterPlot.jsl contains
Scatt3D = dt << Scatterplot 3D( Y( :age, :height ), X Axis( :age ), Y Axis( :height ) );which generates a scatter plot in 3D with the window name
"Big Class - Scatterplot 3D of age, height"
I can generate a journal using
Scatt3D << journalBut I need to generate a journal using the window name
Window ("Big Class - Scatterplot 3D of age, height")<< journal;which is not working. Could I please get some help in getting this to work?
(I am on JMP13).
The following JSL will generate a journal based upon the window name in JMP 13
Window ("Big Class - Scatterplot 3D of age, height")[outlinebox(1)]<< journal;
The following JSL will generate a journal based upon the window name in JMP 13
Window ("Big Class - Scatterplot 3D of age, height")[outlinebox(1)]<< journal;
Thanks @txnelson. This works for the example I have provided. However, for the actual problem I am working on I am getting an error.
In my actual problem, the chart window (a heatmap) has a name.
"part16.08.02 6 - Graph Builder"Running
Window ("part16.08.02 6 - Graph Builder, height")[outlinebox(1)]<< journal;gives me the following error
expected character arg 1 in access or evaluation of 'Outline Box' , Outline Box/*###*/(1)
In the following script, error marked by /*###*/
Window( "part16.08.02 6 - Graph Builder, height" )[Outline Box/*###*/(1)] << journal
I get the journal created when I use
Window ("part16.08.02 6 - Graph Builder")[outlinebox(1)]<< journal;
It is using the name of the actual window. Why are you using
Window ("MPD16.0008.02 6 - Graph Builder, height")
as the window name?
@txnelson Sorry, this is a typo
Window ("MPD16.0008.02 6 - Graph Builder, height")which I have now corrected in the post above, I am using
Window ("part16.08.02 6 - Graph Builder")[outlinebox(1)]<< journal;and it is working now (removed the, height). Thanks.
What is the purpose of
,height?