cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
ileshem
Level III

Horizontal plotting two tables to one journal

Hello again,

I have two different tables and I just want to put them on the same journal/HTML horizontal. 
is there a script command for doing such?

I tried to use the bellow (which I found in this forum) but the tables  came out vertically:nw2 = New Window("horizontal tables", hlb = H List Box()); For(i = 1, i <= N Table(), i++, hlb << Append(Data Table(i) << new data box); //Active tables side by side Data Table(i) << journal; // Journal; tables inactive, for browsing data only );

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Horizontal plotting two tables to one journal

Here is how I would approach the issue.

txnelson_0-1644953923341.png

//nw1 = New Window("vertical tables");

nw2 = New Window( "horizontal tables", <<journal, hlb = H List Box() );

For( i = 1, i <= N Table(), i++, 

//hlb << Append(Data Table(i) << new data box); //Active tables on top of eachother

	hlb << Append( Data Table( i ) << new data box ); //Active tables side by side

	//Data Table(i) << journal; // Journal; tables inactive, for browsing data only

);

 

Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Horizontal plotting two tables to one journal

Here is how I would approach the issue.

txnelson_0-1644953923341.png

//nw1 = New Window("vertical tables");

nw2 = New Window( "horizontal tables", <<journal, hlb = H List Box() );

For( i = 1, i <= N Table(), i++, 

//hlb << Append(Data Table(i) << new data box); //Active tables on top of eachother

	hlb << Append( Data Table( i ) << new data box ); //Active tables side by side

	//Data Table(i) << journal; // Journal; tables inactive, for browsing data only

);

 

Jim
ileshem
Level III

Re: Horizontal plotting two tables to one journal

Thanks! that worked great. 
Is there a way to insert space between the two tables or is it too much for JMP?

txnelson
Super User

Re: Horizontal plotting two tables to one journal

JMP has very powerful capabilities in modification and/or the creation of new output displays.  For your new request, one only has to add a Spacer Box between the outputs that are being appended.

txnelson_0-1644956582731.png

 

//nw1 = New Window("vertical tables");

nw2 = New Window( "horizontal tables", <<journal, hlb = H List Box() );

For( i = 1, i <= N Table(), i++, 

//hlb << Append(Data Table(i) << new data box); //Active tables on top of eachother

	hlb << Append( Data Table( i ) << new data box ); //Active tables side by side
	
	hlb << Append(  Spacer Box( Size( 25, 1) ) );

	//Data Table(i) << journal; // Journal; tables inactive, for browsing data only

);
Jim

Recommended Articles