cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Neo
Neo
Level VI

Send chart to journal using window name, not by using handle to chart?

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 << journal

where 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 << journal

But 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).

 

When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Send chart to journal using window name and not by using handle to chart?

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;
Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Send chart to journal using window name and not by using handle to chart?

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;
Jim
Neo
Neo
Level VI

Re: Send chart to journal using window name and not by using handle to chart?

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
When it's too good to be true, it's neither
txnelson
Super User

Re: Send chart to journal using window name and not by using handle to chart?

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?

Jim
Neo
Neo
Level VI

Re: Send chart to journal using window name and not by using handle to chart?

@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

?

 

When it's too good to be true, it's neither