<?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: Set Frame Size for multiple charts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/768726#M94903</link>
    <description>&lt;P&gt;Hi txnelson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this solution! How can I use this for applying the same DispatchSeg() commands to all my plots? My script right now has the following code for ALL my 12+ plots:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dispatch(
			{"Variability Gauge Analysis for Plot1",
			"Variability Chart for Plot1"},
			"Variability Chart",
			FrameBox,
			{Frame Size( 400, 200 ),
			DispatchSeg( Box Plot Seg( 1 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 2 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 3 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 4 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 5 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 6 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 7 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 8 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 9 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 10 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 11 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 12 ), Line Color( "Black" ) )
			}
		)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried this, but it didn't work:&lt;/P&gt;&lt;PRE&gt;fb = {Frame Size( 400, 200 ),
	DispatchSeg( Box Plot Seg( 1 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 2 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 3 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 4 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 5 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 6 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 7 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 8 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 9 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 10 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 11 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 12 ), Line Color( "Black" ) )
};
(Report(vc) &amp;lt;&amp;lt; xpath("//FrameBox")) &amp;lt;&amp;lt; fb;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 18:55:34 GMT</pubDate>
    <dc:creator>EndersGame</dc:creator>
    <dc:date>2024-06-26T18:55:34Z</dc:date>
    <item>
      <title>Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50206#M28565</link>
      <description>&lt;P&gt;My current script gives me multiple charts by the different product's. Which is what I'm looking for.&lt;/P&gt;&lt;P&gt;Now I'd like to make all those charts have the same frame size. I'm finding that I have to be specific when I use dispatch and have to write every single outline name.&lt;/P&gt;&lt;P&gt;The issue with that is that there will be different products every time I run it and I'd prefer not to have to go in and change the names every time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to automate this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Data for Comparison" ) &amp;lt;&amp;lt; Variability Chart(
	Y( Column( "Mean(Bin_VALUE)" ) ),
	X( :Bin_Size, :Status_Type2 ),
	By( :Product ),
	Show Box Plots( 1 ),
	Std Dev Chart( 0 ),
	SendToReport(
		Dispatch(
			{"Variability Gauge Product= Product 1", "Variability Chart for Mean(Bin_VALUE)"},
			"Variability Chart",
			FrameBox,
			{Frame Size( 800, 240 )}
		), 

	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:25:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50206#M28565</guid>
      <dc:creator>Herrera5238</dc:creator>
      <dc:date>2018-01-25T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50207#M28566</link>
      <description>&lt;P&gt;You can use XPath to retrieve all of the FrameBox() objects, and then set the Frame Size to all of them&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;vc = Data Table( "Data for Comparison" ) &amp;lt;&amp;lt; Variability Chart(
	Y( Column( "Mean(Bin_VALUE)" ) ),
	X( :Bin_Size, :Status_Type2 ),
	By( :Product ),
	Show Box Plots( 1 ),
	Std Dev Chart( 0 ),
);

(Report(vc) &amp;lt;&amp;lt; xpath("//FrameBox")) &amp;lt;&amp;lt; Frame Size( 800, 240 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2018 17:28:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50207#M28566</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-25T17:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50208#M28567</link>
      <description>&lt;P&gt;The fact is, we are not meant to use the &lt;STRONG&gt;Send To Report&lt;/STRONG&gt; directive. This way is intended only so that JMP can capture report layer customizations when you save a script. Try the recommended way:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;platform = Data Table( "Data for Comparison" ) &amp;lt;&amp;lt; Variability Chart(
	Y( Column( "Mean(Bin_VALUE)" ) ),
	X( :Bin_Size, :Status_Type2 ),
	By( :Product ),
	Show Box Plots( 1 ),
	Std Dev Chart( 0 )
);

Report( platform )[FrameBox(1)] &amp;lt;&amp;lt; Frame Size( 800, 240 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Easy, eh?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 16:37:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50208#M28567</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-01-25T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50214#M28573</link>
      <description>&lt;P&gt;Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I use the same concept in the scenario below, in order to set the titles. Withouth having to type each one of them.&lt;/P&gt;&lt;P&gt;So go from this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Template_TM = Expr(
	TM = Oneway(
		Y( Eval( TargetParameter )),
		X( :Process ),
		Each Pair( 1 ),
		Means and Std Dev( 1 ),
		t Test( 1 ),
		Points Jittered( 1 ),
		Box Plots( 1 ),
		Mean Error Bars( 1 ),
		Std Dev Lines( 1 ),
		Comparison Circles( 1 ),
		X Axis Proportional( 0),
		Histograms( 0),
		//Where( :PARAMETER_ID == Eval( TargetParameter )),
		SendToReport(
			Dispatch( {}, "Oneway Analysis of 0.12 By Process", OutlineBox(1), {Set Title( TargetProduct ||"_Oneway Analysis at_" || TargetParameter )} ),
			Dispatch( {}, "Oneway Analysis of 0.16 By Process", OutlineBox(1), {Set Title( TargetProduct ||"_Oneway Analysis at_" || TargetParameter )} ),
			Dispatch( {}, "Oneway Analysis of 0.2 By Process", OutlineBox(1), {Set Title( TargetProduct ||"_Oneway Analysis at_" || TargetParameter )} ),
			Dispatch( {}, "Oneway Analysis of 0.3 By Process", OutlineBox(1), {Set Title( TargetProduct ||"_Oneway Analysis at_" || TargetParameter )} ),
			Dispatch( {}, "1", ScaleBox, {Min( 0 ), Minor Ticks( 1 ), Add Ref Line(Eval(Limit_UCL), "Dotted", "Dark Blue", "UCL", 1)}),
			Dispatch( {}, "Oneway Plot", FrameBox, ),
			Dispatch( {}, "Means Comparisons", OutlineBox, {Close( 1 )} )
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Template_TM = Expr(
	TM = Oneway(
		Y( Eval( TargetParameter )),
		X( :Process ),
		Each Pair( 1 ),
		Means and Std Dev( 1 ),
		t Test( 1 ),
		Points Jittered( 1 ),
		Box Plots( 1 ),
		Mean Error Bars( 1 ),
		Std Dev Lines( 1 ),
		Comparison Circles( 1 ),
		X Axis Proportional( 0),
		Histograms( 0),
		//Where( :PARAMETER_ID == Eval( TargetParameter )),
		SendToReport(
			Dispatch( {}, "1", ScaleBox, {Min( 0 ), Minor Ticks( 1 ), Add Ref Line(Eval(Limit_UCL), "Dotted", "Dark Blue", "UCL", 1)}),
			Dispatch( {}, "Oneway Plot", FrameBox, ),
			Dispatch( {}, "Means Comparisons", OutlineBox, {Close( 1 )} )
		)
	);
);
(TM&amp;lt;&amp;lt;xpath("//OutlineBox"))&amp;lt;&amp;lt;Set Title( TargetProduct ||"_Oneway Analysis at_" || TargetParameter );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2018 17:33:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50214#M28573</guid>
      <dc:creator>Herrera5238</dc:creator>
      <dc:date>2018-01-25T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50215#M28574</link>
      <description>&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but none of the charts changed size. It did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm very new to JMP scipting so I'm sorry if this obeservation isn't helpful but one thing that I noticed when I pasted your script is that platform didn't turn blue.&lt;/P&gt;&lt;P&gt;Not sure if there is something else I'm missing.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 17:40:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50215#M28574</guid>
      <dc:creator>Herrera5238</dc:creator>
      <dc:date>2018-01-25T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50232#M28581</link>
      <description>&lt;P&gt;My solution is essentially the same as Jim's answer. I saved a reference to the plotting platform and then used it with subscripting to send the message. Jim used XPath to return the reference before sending the message. You would have to store the reference when you open each platform in a list and then send the message to the list if you want to use my approach. For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

platform = List();

p = dt &amp;lt;&amp;lt; Bivariate(
	Y( :weight ),
	X( :height ),
);

Insert Into( platform, Report( p )[FrameBox(1)] );

p = dt &amp;lt;&amp;lt; Oneway(
	Y( :weight ),
	X( :age ),
);

Insert Into( platform, Report( p )[FrameBox(1)] );

platform &amp;lt;&amp;lt; Frame Size( 800, 240 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim's solution is more elegant.&lt;/P&gt;
&lt;P&gt;There is no mention above about selecting display boxes so they are highlighted in blue. That result is accomplished with the &amp;lt;&amp;lt; &lt;STRONG&gt;Select&lt;/STRONG&gt; message.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 18:56:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/50232#M28581</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-01-25T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/768726#M94903</link>
      <description>&lt;P&gt;Hi txnelson,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this solution! How can I use this for applying the same DispatchSeg() commands to all my plots? My script right now has the following code for ALL my 12+ plots:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dispatch(
			{"Variability Gauge Analysis for Plot1",
			"Variability Chart for Plot1"},
			"Variability Chart",
			FrameBox,
			{Frame Size( 400, 200 ),
			DispatchSeg( Box Plot Seg( 1 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 2 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 3 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 4 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 5 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 6 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 7 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 8 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 9 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 10 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 11 ), Line Color( "Black" ) ),
			DispatchSeg( Box Plot Seg( 12 ), Line Color( "Black" ) )
			}
		)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried this, but it didn't work:&lt;/P&gt;&lt;PRE&gt;fb = {Frame Size( 400, 200 ),
	DispatchSeg( Box Plot Seg( 1 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 2 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 3 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 4 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 5 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 6 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 7 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 8 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 9 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 10 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 11 ), Line Color( "Black" ) ),
	DispatchSeg( Box Plot Seg( 12 ), Line Color( "Black" ) )
};
(Report(vc) &amp;lt;&amp;lt; xpath("//FrameBox")) &amp;lt;&amp;lt; fb;&lt;/PRE&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 18:55:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/768726#M94903</guid>
      <dc:creator>EndersGame</dc:creator>
      <dc:date>2024-06-26T18:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Frame Size for multiple charts</title>
      <link>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/768765#M94905</link>
      <description>&lt;P&gt;from:&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762414/highlight/true#M94163" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Change-the-default-color-of-box-plot-lines/m-p/762414/highlight/true#M94163&lt;/A&gt;&amp;nbsp;&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" );
	
myPlot = Variability Chart(
	Y( :height ),
	X( :age ),
	Variability Analysis( :height, Show Box Plots( 1 ) )
);

mySegs=report(myPlot)[FrameBox(1)]&amp;lt;&amp;lt; find segs; // get all display elements
Filter Each({seg},(mySegs), (seg&amp;lt;&amp;lt; class name)=="BoxPlotSeg") //just keep the Box Plots
 &amp;lt;&amp;lt; Set Line Color("Black")&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 19:41:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Set-Frame-Size-for-multiple-charts/m-p/768765#M94905</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-26T19:41:35Z</dc:date>
    </item>
  </channel>
</rss>

