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?
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.
Hi,
I've not the answer but I'm intersting to know how you can hide tables.
Thanks in advance.
Ragards,
Guillaume
Hi,
to hide a table you just have to put in the word "invisible".
dt = Open("SAMPLE_DATA/Big Class.jmp", invisible);
Thanks, good to know but it don't works with OpenDataBase() command.
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.
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?
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.
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.
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) ) );
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.