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

How to append graph builder plots in a report or a journal?

Hello,

 

I just started working with this language 3 days back. I am working on a script that automates the creation of plots based on certain specifications in the Graph Builder. The step I am stuck on, is to integrate all plots in a report or journal, in order for easy understanding. 

 

// x_col and y_cols contain the selected columns for which graphs have to be plotted. x_col is singular
x_col = dlg["xList"];
y_cols = dlg["yList"];


// Iterate over the Y columns and create a Graph Builder plot for each
For(i = 1, i <= N Items(y_cols), i++,

            gb = dt << Graph Builder(
                Size(534, 456),
                Show Control Panel(0),
                Variables(X(x_col[1]), Y(y_cols[i])),
                Elements(Points(X, Y, Legend(7))),
                invisible
            );
            gb << Save Picture("Plot_" || Char(i) || ".emf", EMF);
);

I am able to save the plots as an image, but the requirement is to get images in a folder and the report/journal. Any help would be appreciated.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Kenobi
Level III

Re: How to append graph builder plots in a report or a journal?

Hi, I think I got it solved now. Sharing the script with you all, in case any one else encounters the same issue

nw = New Window( "graphs", myVLB = V List Box() );
	
// Iterate over the Y columns and create a Graph Builder plot for each
For(i = 1, i <= N Items(y_cols), i++,

			gb = dt << Graph Builder(
				Size(534, 456),
				Show Control Panel(0),
				Variables(X(x_col[1]), Y(y_cols[i])),
				Elements(Points(X, Y, Legend(7))),
				invisible
			);
			myVLB << append( Report( gb ) );
			gb << delete;
);

View solution in original post

1 REPLY 1
Kenobi
Level III

Re: How to append graph builder plots in a report or a journal?

Hi, I think I got it solved now. Sharing the script with you all, in case any one else encounters the same issue

nw = New Window( "graphs", myVLB = V List Box() );
	
// Iterate over the Y columns and create a Graph Builder plot for each
For(i = 1, i <= N Items(y_cols), i++,

			gb = dt << Graph Builder(
				Size(534, 456),
				Show Control Panel(0),
				Variables(X(x_col[1]), Y(y_cols[i])),
				Elements(Points(X, Y, Legend(7))),
				invisible
			);
			myVLB << append( Report( gb ) );
			gb << delete;
);

Recommended Articles