- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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).
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
?