Subscribe Bookmark RSS Feed

Create Invisible Journal

robot

Community Trekker

Joined:

Feb 27, 2012

Hi,

I have a script where I create a journal that serves only as a container for other platform results before it is saved as a JPG and closed.  Is it possible to create a journal using the invisible option?  I have not been able to get it to work.  I am using JMP10.

Thanks!

// These do not work...

jrn1 = New Window( "Graph Results", <<Journal, Invisible );

jrn2 = New Window( "Graph Results", <<Journal, <<Invisible );

jrn3 = New Window( "Graph Results", <<Invisible, <<Journal );

jrn4 = New Window( "Graph Results", Invisible, <<Journal );

jrn5 = New Window( "Graph Results", Invisible ) << Journal;

jrn6 = New Window( "Graph Results", <<Journal ) << Invisible;

1 ACCEPTED SOLUTION

Accepted Solutions
michaelhaslam_p

Community Trekker

Joined:

Sep 15, 2013

Solution

Robot,

There is really no need to have an invisible option for New Window.  The purpose of New Window is to "display" a visible window.  You can make a display tree outside of New Window and simply save a picture of it to accomplish your goal.  Here I have used image type PNG, but you could easily use JPG.  The Platform command evaluates and creates a display box for use in your display tree.

In JMP 9 or later:

// Make and saving a display tree  outside of New Window

// Open the table and assign it a reference

dt = Open (Convert File Path("$Sample_Data") || "Big Class.jmp", invisible);

// Run the analysis and create a display box using Platform()

db1 = Platform(dt, Bivariate( Y( :height ), X( :weight ) ));

// Create the display tree you want

Display Tree = VListBox(

OutlineBox("My Outline",
  TextBox 1 = TextBox("Here is my analysis of Big Class."),
  db1
);
);

//  Save the display tree as a picture

Temp = Display Tree << Save Picture(Convert File Path("$Documents") || "Temp.png");

//  You can now close the datatable

Close(dt,Nosave);

Michael Haslam

4 REPLIES
michaelhaslam_p

Community Trekker

Joined:

Sep 15, 2013

Solution

Robot,

There is really no need to have an invisible option for New Window.  The purpose of New Window is to "display" a visible window.  You can make a display tree outside of New Window and simply save a picture of it to accomplish your goal.  Here I have used image type PNG, but you could easily use JPG.  The Platform command evaluates and creates a display box for use in your display tree.

In JMP 9 or later:

// Make and saving a display tree  outside of New Window

// Open the table and assign it a reference

dt = Open (Convert File Path("$Sample_Data") || "Big Class.jmp", invisible);

// Run the analysis and create a display box using Platform()

db1 = Platform(dt, Bivariate( Y( :height ), X( :weight ) ));

// Create the display tree you want

Display Tree = VListBox(

OutlineBox("My Outline",
  TextBox 1 = TextBox("Here is my analysis of Big Class."),
  db1
);
);

//  Save the display tree as a picture

Temp = Display Tree << Save Picture(Convert File Path("$Documents") || "Temp.png");

//  You can now close the datatable

Close(dt,Nosave);

Michael Haslam

robot

Community Trekker

Joined:

Feb 27, 2012

Hi Michael,

I am unable to run your script without my JMP10 crashing at the

Temp = Display Tree << Save Picture(Convert File Path("$Documents") || "Temp.png");


step.  I have tried changing the file format to .jpg, but still without success.  Perhaps this is due to differences between JMP9 and JMP10.  I will play around with the syntax as I have time.


Thanks for the input.

michaelhaslam_p

Community Trekker

Joined:

Sep 15, 2013

Robot,

I just ran the code in 9.0.3 and 10.0.2.  Both ran fine.  What version are you using?

Michael

robot

Community Trekker

Joined:

Feb 27, 2012

Hi Michael,

Sorry for the very late reply to your answer.  Your solution works.  Thanks for the help.

Rob