Subscribe Bookmark RSS Feed

Closing data tables but keeping plot results

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

Hi,

I have written JMP script to manipulate some data tables and produce graphs all on the one window. Part of this involved creating subsets. Therefore i have alot of tables open. I know how to hide them but understand this still uses alot of JMP memory. Therefore i want to close them. However when i close them i lose my plots.

How do i keep my window showing all of the plots?

10 REPLIES
gbu

Community Trekker

Joined:

Jun 23, 2011

Hi,

I've not the answer but I'm intersting to know how you can hide tables.
Thanks in advance.

Ragards,

Guillaume

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

Hi,

to hide a table you just have to put in the word "invisible".

dt = Open("SAMPLE_DATA/Big Class.jmp", invisible);

gbu

Community Trekker

Joined:

Jun 23, 2011

Thanks, good to know but it don't works with OpenDataBase() command.

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

I had a similar issue so I used the following code to get around that:

my_file = pick file();

dt = open(my_file,invisible);

Maybe that will work for you too.

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

Can anybody offer some help with this? All I want at the end of running my script is a window showing various plots. I don't care about the data tables.

Is there a command to freeze the plots so if i close the data tables, I won't lose my plots?

mpb

Super User

Joined:

Jun 23, 2011

Have you tried sending each plot to a journal as you make it? When done with a table, close it and the platform output. The journal will remain and you can keep adding to it with the next bunch of plots.

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

Hi mpb,

I tried using a journal previously and it worked well.

However when it is in a journal - you have less flexibility with graphs. The red triangle menu gives very little options compared to when the graph is in a window.

The window menu would give the user far more flexibility for customizing the plots. Such as adding quantiles, summary statistics, etc.

Thanks for your help.

wiebepo

Community Trekker

Joined:

Oct 10, 2011

Consider the following sequence:

1.retrieve data

2.make invisible copy

3.close original data table

4.create graphs

5.add a function to one graph to close the invisible table when it is closed.

Something like as follows:

dt_original=opendatabase(parameters);

dt=dt_original<<subset(rows(),invisible);

close(dt_original,nosave);

plot_graph=dt<<graphbuilder(parameters);

plot_graph<< Subscribe("Close Invisible table", On Close( close(dt,nosave) ) );

michaelcorleone

Community Trekker

Joined:

Jul 11, 2012

Thanks very much weibepo.

I adapted your code above so that now when i close my Report Window all hidden data tables close too.

nw << On Close(close all(Data Tables, NoSave));

where nw is my report window.