<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exporting multiple Graphs with different scripts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387224#M63752</link>
    <description>&lt;P&gt;pmroz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the input! Being a novice, I'm still getting use to JSL flow and functionality, and would be glad for expert guidance. I included the entire script (pared down), to show you the overall flow. Based on previous coding experience which considered a main macro and subroutines, I was trying to encapsulate routines in expressions so they could be called later in program ("Files()", "Join_files", and "Con").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed "Graphs = Eval Expr" to&amp;nbsp;"Graphs = Expr", and everything works. I wasn't sure if this needed an Eval since it was called in another expression (Join_files).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had used graphs in new window, but still get an empty window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again for your valuable time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Files = Expr(
	
	SD1 = "C:\Users\";
	
	path = {};
	f1 = Files In Directory( SD1, recursive(1));

	For( i = 1, i &amp;lt;= N Items( f1 ), i++,
		If(Ends With( f1[i], ".csv" ),
			f1[i] = Convert File Path(SD1) || f1[i]; 
			b= f1[i];
			Insert Into(path, b)
		);		
	);
);



Join_files = Expr(
		
	For( i = 1, i &amp;lt;= N Items( path ), i+=2, 
			/*area, %area, and pore pixel count*/
			jointable1 = Open( path[i] );
			//jointable1 &amp;lt;&amp;lt; Get Name;
			samplename = Substr( jointable1 &amp;lt;&amp;lt; Get Name, 1, 18 );			//sample replicate name //
			samplename2 = Word(1,q, "_");									// only sample name, no replicate suffix
			
			jointable1 &amp;lt;&amp;lt; New Column( "Sample",
				Character,
				Nominal,	
				Set Each Value( samplename )								// setting each row in column 1 to samp rep name //
				);
			
			
			jointable2 = Open( path[i + 1] );

			dt = Data Table( jointable1 ) &amp;lt;&amp;lt; Join(
				With( Data Table( jointable2 ) ),
				Select( :Sample, :Area, :Name( "%Area" ),:scale,:thick),
				SelectWith( :pixD1, :count1),
				Cartesian Join	
				);
			
			Close( jointable1, no save );
			Close( jointable2, no save );
			
			Columns();
			Graphs();
			Graphs2();
			Graphs3();
			dt &amp;lt;&amp;lt; Set Name(samplename);
			po = dt &amp;lt;&amp;lt; get name;
			dt &amp;lt;&amp;lt; Save(SD1 || po);
			
		);
	
		nw = new window("Example Export Multiple Platforms",
				chart_output = vlistbox(
					graphs,
					
				);
			);
	
	);


Columns = Eval Expr(
	
	dt &amp;lt;&amp;lt; New Column( "Sample 2", 
		Character, 
		"Nominal", 
		Set Each Value(samplename2),
		Set Display Width( 150 ), 
			
	);
);


Graphs = Eval Expr(
			/*set graphs*/
	dt &amp;lt;&amp;lt; New Table Property( "Cumulative Resistivity",
		Graph Builder(
			Size( 591, 496 ),
			Show Control Panel( 0 ),
			Grid Color( "Black" ),
			Graph Spacing( 2 ),
			Variables(
				X( :Name( "Diameter (um)" ) ),
				Y( :Name( "flow resistivity (Pa*s/m^2)") ),
				Overlay( :Sample )
			),
			Elements( Position( 1, 1 ), Line( X, Y, Legend( 20 ) ) ),
		
			SendToReport(
				Dispatch(
					{},
					"Diameter (um)",
					ScaleBox,
					{Min( 0 ), Max( 80 ), Inc( 1 ), Minor Ticks( 1 ),
					Label Row(
						{Show Major Grid( 1 ), Show Minor Grid( 1 )}
					)}
				),
				Dispatch(
					{},
					"flow resistivity (Pa*s/m^2)",
					ScaleBox,
					{Scale( "Log" ), Format( "Scientific", 12 ), Min( 100000 ),
					Max( 10000000000000 ), Inc( 1 ), Minor Ticks( 1 ),
					Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
				),
			)
		)
		
	)
	
);


Con = Expr(
	
	dt = {};

	// Sort list ascending (sample replicates) //

	For( i = 1, i &amp;lt;= N Table(), i++,
		table = data table(i);
		insert into(dt, table);
		sort list into(dt)
	);
	
	// Concatenate each file (sample replicates) //

	dt_all= Data Table( dt[1] ) &amp;lt;&amp;lt; Concatenate(
		Data Table( dt[2] ),
		Data Table( dt[3] ),
		Output Table( "Concatenated Table" )
		);
		
		// Rename file to sample name and Save //

	dt_all &amp;lt;&amp;lt; set name(samplename2);
	dt_all:Sample &amp;lt;&amp;lt; Set Display Width( 150 );  // Widen to include entire title
	p = dt_all &amp;lt;&amp;lt; get name;
	dt_all &amp;lt;&amp;lt; Save(SD1 || p);

	close(dt_all, no save);
	close(dt[1], no save);
	close(dt[2], no save);
	close(dt[3], no save);
);

Files();
Join_files();
Con();

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 May 2021 15:31:25 GMT</pubDate>
    <dc:creator>NRW</dc:creator>
    <dc:date>2021-05-20T15:31:25Z</dc:date>
    <item>
      <title>Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331700#M58050</link>
      <description>&lt;P&gt;Hey Jmp users,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export multiple graphs in Jmp. Is there anyway to select the corresponding scripts and export all the graphs together.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:07:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331700#M58050</guid>
      <dc:creator>JMPdiscoverer</dc:creator>
      <dc:date>2023-06-11T11:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331745#M58055</link>
      <description>&lt;P&gt;Here's an example that exports three graphical outputs from Big Class to a word doc.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Big Class.jmp");

dist = expr(dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :weight ) ),
	Nominal Distribution( Column( :age ) )
));

gb1 = expr(dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :sex ) ),
	Elements( Heatmap( X, Y, Legend( 2 ) ) )
));

gb2 = expr(dt &amp;lt;&amp;lt; Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
));

nw = new window("Example Export Multiple Platforms",
	chart_output = vlistbox(
		dist,
		page break box(),
		gb1,
		page break box(),
		gb2
	);
);

chart_output &amp;lt;&amp;lt; save msword("c:\temp\SampleCharts.doc", Native);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Nov 2020 15:55:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331745#M58055</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-11-10T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331750#M58058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/20394"&gt;@JMPdiscoverer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I was coming up with a similar solution to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4550"&gt;@pmroz&lt;/a&gt;&amp;nbsp;, and I like what they did.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here's what I was thinking, but not as nice as making a word document, etc. You can also save them directly to PPT files as well. I created the reports in the JSL just to have them handy, but the for loops can work if you've already got them open. But, if you write a script that generates the reports, you can just reference the report by variable name instead of finding a list of windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = open("$sample_data\Big Class.jmp");

rpt1 = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ) );
rpt2 = dt &amp;lt;&amp;lt; Oneway( Y( :height ), X( :age ), X Axis Proportional( 0 ) );
rpt3 = dt &amp;lt;&amp;lt; Fit Group(
	Oneway( Y( :weight ), X( :age ), X Axis Proportional( 0 ) ),
	Bivariate( Y( :weight ), X( :height ) ),
	&amp;lt;&amp;lt;{Arrange in Rows( 2 )}
);


reportlist = {};
For( i = 0, i &amp;lt;= N Items( Window() ), i++,
	If(
		!Is Missing( Regex( Window( i ) &amp;lt;&amp;lt; getwindow title, "Fit" ) ) == 1 | !Is Missing(
			Regex( Window( i ) &amp;lt;&amp;lt; getwindow title, "Oneway" )
		) == 1 | !Is Missing( Regex( Window( i ) &amp;lt;&amp;lt; getwindow title, "Bivariate" ) ) == 1,
		Insert Into( reportlist, Window( i ) &amp;lt;&amp;lt; get window title )
	)
);


For( i = 1, i &amp;lt;= N Items( reportlist ), i++,
	picbox = Window( reportlist[i] ) &amp;lt;&amp;lt; getPicture;
	picbox &amp;lt;&amp;lt; SaveImage(
		"whatever your local directory to save is\pic" || Char( i ) || ".png"
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; These should get you working well on your way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:39:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/331750#M58058</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2020-11-10T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387183#M63745</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just stumbled upon this thread, and I think it is what I've been after. However, I'm still trying to get over the JSL learning hump and I can't quite get the result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quick summary:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - merged CSV data sets into one JMP sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - created and saved plot scripts to data table&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - When opening table at a later point, I run the the three plot scripts, then I copy and paste each plot into a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;single Powerpoint slide (images that correspond to plots have been pasted already in same slide)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to minimize the click and copy steps by at least pooling all three graphs together and get them in a format that can export all three at the same time. I've been exploring if this needs to be done with a Dashboard or Journal which somehow groups and saves as a file I can pull over. The holy grail would be to have my jpg images mated with my JMP plots and then brought over to PP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the Vlist command &lt;U&gt;&lt;STRONG&gt;but get an empty window&lt;/STRONG&gt;&lt;/U&gt; when trying to get the plot that was saved as a script. Part of the relevant script pieces are shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or input are welcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Join_files = Expr(
		
	For( i = 1, i &amp;lt;= N Items( path ), i+=2, 
			/*area, %area, and pore pixel count*/
			jointable1 = Open( path[i] );
			//jointable1 &amp;lt;&amp;lt; Get Name;
			samplename = Substr( jointable1 &amp;lt;&amp;lt; Get Name, 1, 18 );			//sample replicate name //
			samplename2 = Word(1,q, "_");									// only sample name, no replicate suffix
			
			
			
			jointable1 &amp;lt;&amp;lt; New Column( "Sample",
				Character,
				Nominal,	
				Set Each Value( samplename )								// setting each row in column 1 to samp rep name //
				);
			
			/*diameter and pore pixel count*/
			jointable2 = Open( path[i + 1] );

			dt = Data Table( jointable1 ) &amp;lt;&amp;lt; Join(
				With( Data Table( jointable2 ) ),
				Select( :Sample, :Area, :Name( "%Area" ),:scale,:thick),
				SelectWith( :pixD1, :count1),
				Cartesian Join	
				);
			
			Close( jointable1, no save );&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="report summ_.JPG" style="width: 829px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32980i018D050D35ACCDD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="report summ_.JPG" alt="report summ_.JPG" /&gt;&lt;/span&gt;
			Close( jointable2, no save );
			
			Columns();
			Graphs();
			Graphs2();
			Graphs3();
			dt &amp;lt;&amp;lt; Set Name(samplename);
			po = dt &amp;lt;&amp;lt; get name;
			dt &amp;lt;&amp;lt; Save(SD1 || po);
			
		);
	&lt;BR /&gt;Graphs = Eval Expr(&lt;BR /&gt;/*set graphs*/&lt;BR /&gt;dt &amp;lt;&amp;lt; New Table Property( "Cumulative Resistivity",&lt;BR /&gt;Graph Builder(&lt;BR /&gt;Size( 591, 496 ),&lt;BR /&gt;Show Control Panel( 0 ),&lt;BR /&gt;Grid Color( "Black" ),&lt;BR /&gt;Graph Spacing( 2 ),&lt;BR /&gt;Variables(&lt;BR /&gt;X( :Name( "Pore Diameter (um)" ) ),&lt;BR /&gt;Y( :Name( "Cumulative flow resistivity (Pa*s/m^2)") ),&lt;BR /&gt;Y( :Pore Size Dist ),&lt;BR /&gt;Y( :Name( "Cumulative Pore fraction (pore+solid)" ) ),&lt;BR /&gt;Overlay( :Sample )&lt;BR /&gt;),&lt;BR /&gt;Elements( Position( 1, 1 ), Line( X, Y, Legend( 20 ) ) ),&lt;BR /&gt;Elements( Position( 1, 2 ), Line( X, Y, Legend( 18 ) ) ),&lt;BR /&gt;Elements( Position( 1, 3 ), Line( X, Y, Legend( 19 ) ) ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch(&lt;BR /&gt;...&lt;BR /&gt;
		nw = new window("Example Export Multiple Platforms",
				chart_output = vlistbox(
					graphs("Cumulative Resistivity"),
					
				);
			);
	
	
	
	
	
	
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 13:21:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387183#M63745</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-20T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387210#M63749</link>
      <description>&lt;P&gt;Hi NRW - I think you are over complicating things somewhat.&amp;nbsp; You don't need to put your join logic into an expression.&amp;nbsp; Just run it as is without the surrounding expr().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;graphs&lt;/STRONG&gt; logic got cut off in your posting, but that I would do as &lt;STRONG&gt;expr()&lt;/STRONG&gt;, rather than &lt;STRONG&gt;eval expr()&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally in your new window just put&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;graphs,&lt;/LI-CODE&gt;
&lt;P&gt;and not&lt;/P&gt;
&lt;LI-CODE lang="jsl"&gt;graphs("Cumulative Resistivity"),&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 14:25:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387210#M63749</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2021-05-20T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387224#M63752</link>
      <description>&lt;P&gt;pmroz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for the input! Being a novice, I'm still getting use to JSL flow and functionality, and would be glad for expert guidance. I included the entire script (pared down), to show you the overall flow. Based on previous coding experience which considered a main macro and subroutines, I was trying to encapsulate routines in expressions so they could be called later in program ("Files()", "Join_files", and "Con").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed "Graphs = Eval Expr" to&amp;nbsp;"Graphs = Expr", and everything works. I wasn't sure if this needed an Eval since it was called in another expression (Join_files).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had used graphs in new window, but still get an empty window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again for your valuable time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Files = Expr(
	
	SD1 = "C:\Users\";
	
	path = {};
	f1 = Files In Directory( SD1, recursive(1));

	For( i = 1, i &amp;lt;= N Items( f1 ), i++,
		If(Ends With( f1[i], ".csv" ),
			f1[i] = Convert File Path(SD1) || f1[i]; 
			b= f1[i];
			Insert Into(path, b)
		);		
	);
);



Join_files = Expr(
		
	For( i = 1, i &amp;lt;= N Items( path ), i+=2, 
			/*area, %area, and pore pixel count*/
			jointable1 = Open( path[i] );
			//jointable1 &amp;lt;&amp;lt; Get Name;
			samplename = Substr( jointable1 &amp;lt;&amp;lt; Get Name, 1, 18 );			//sample replicate name //
			samplename2 = Word(1,q, "_");									// only sample name, no replicate suffix
			
			jointable1 &amp;lt;&amp;lt; New Column( "Sample",
				Character,
				Nominal,	
				Set Each Value( samplename )								// setting each row in column 1 to samp rep name //
				);
			
			
			jointable2 = Open( path[i + 1] );

			dt = Data Table( jointable1 ) &amp;lt;&amp;lt; Join(
				With( Data Table( jointable2 ) ),
				Select( :Sample, :Area, :Name( "%Area" ),:scale,:thick),
				SelectWith( :pixD1, :count1),
				Cartesian Join	
				);
			
			Close( jointable1, no save );
			Close( jointable2, no save );
			
			Columns();
			Graphs();
			Graphs2();
			Graphs3();
			dt &amp;lt;&amp;lt; Set Name(samplename);
			po = dt &amp;lt;&amp;lt; get name;
			dt &amp;lt;&amp;lt; Save(SD1 || po);
			
		);
	
		nw = new window("Example Export Multiple Platforms",
				chart_output = vlistbox(
					graphs,
					
				);
			);
	
	);


Columns = Eval Expr(
	
	dt &amp;lt;&amp;lt; New Column( "Sample 2", 
		Character, 
		"Nominal", 
		Set Each Value(samplename2),
		Set Display Width( 150 ), 
			
	);
);


Graphs = Eval Expr(
			/*set graphs*/
	dt &amp;lt;&amp;lt; New Table Property( "Cumulative Resistivity",
		Graph Builder(
			Size( 591, 496 ),
			Show Control Panel( 0 ),
			Grid Color( "Black" ),
			Graph Spacing( 2 ),
			Variables(
				X( :Name( "Diameter (um)" ) ),
				Y( :Name( "flow resistivity (Pa*s/m^2)") ),
				Overlay( :Sample )
			),
			Elements( Position( 1, 1 ), Line( X, Y, Legend( 20 ) ) ),
		
			SendToReport(
				Dispatch(
					{},
					"Diameter (um)",
					ScaleBox,
					{Min( 0 ), Max( 80 ), Inc( 1 ), Minor Ticks( 1 ),
					Label Row(
						{Show Major Grid( 1 ), Show Minor Grid( 1 )}
					)}
				),
				Dispatch(
					{},
					"flow resistivity (Pa*s/m^2)",
					ScaleBox,
					{Scale( "Log" ), Format( "Scientific", 12 ), Min( 100000 ),
					Max( 10000000000000 ), Inc( 1 ), Minor Ticks( 1 ),
					Label Row( {Show Major Grid( 1 ), Show Minor Grid( 1 )} )}
				),
			)
		)
		
	)
	
);


Con = Expr(
	
	dt = {};

	// Sort list ascending (sample replicates) //

	For( i = 1, i &amp;lt;= N Table(), i++,
		table = data table(i);
		insert into(dt, table);
		sort list into(dt)
	);
	
	// Concatenate each file (sample replicates) //

	dt_all= Data Table( dt[1] ) &amp;lt;&amp;lt; Concatenate(
		Data Table( dt[2] ),
		Data Table( dt[3] ),
		Output Table( "Concatenated Table" )
		);
		
		// Rename file to sample name and Save //

	dt_all &amp;lt;&amp;lt; set name(samplename2);
	dt_all:Sample &amp;lt;&amp;lt; Set Display Width( 150 );  // Widen to include entire title
	p = dt_all &amp;lt;&amp;lt; get name;
	dt_all &amp;lt;&amp;lt; Save(SD1 || p);

	close(dt_all, no save);
	close(dt[1], no save);
	close(dt[2], no save);
	close(dt[3], no save);
);

Files();
Join_files();
Con();

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 May 2021 15:31:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/387224#M63752</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-20T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple Graphs with different scripts</title>
      <link>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/388485#M63858</link>
      <description>&lt;P&gt;pmroz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still getting a blank window when trying to open "Graph". Is there something fundamental that I need to include? My objective is to put all three plots (Graphs, Graphs2 and Graphs3) into one window so I can copy and paste into Powerpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for any input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:14:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exporting-multiple-Graphs-with-different-scripts/m-p/388485#M63858</guid>
      <dc:creator>NRW</dc:creator>
      <dc:date>2021-05-26T12:14:37Z</dc:date>
    </item>
  </channel>
</rss>

