cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar

Closing data tables but keeping plot results

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?

1 ACCEPTED SOLUTION

Accepted Solutions
mpb
mpb
Level VII

Re: Closing data tables but keeping plot results

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.

View solution in original post

10 REPLIES 10
gbu
gbu
Level III

Re: Closing data tables but keeping plot results

Hi,

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

Ragards,

Guillaume

Re: Closing data tables but keeping plot results

Hi,

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

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

gbu
gbu
Level III

Re: Closing data tables but keeping plot results

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

Re: Closing data tables but keeping plot results

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.

Re: Closing data tables but keeping plot results

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
mpb
Level VII

Re: Closing data tables but keeping plot results

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.

Re: Closing data tables but keeping plot results

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
Level III

Re: Closing data tables but keeping plot results

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

Re: Closing data tables but keeping plot results

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.