<?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: JMP scripting on Bivariate plot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718574#M90168</link>
    <description>&lt;P&gt;I was not able to correct your issue using Bivariate, however, it works correctly using Graph Builder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706427756588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60655i2164406CE723CA25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1706427756588.png" alt="txnelson_0-1706427756588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = current data table();

// Set selected rows' colors
dt &amp;lt;&amp;lt; Select Where( :Z == 1 ) &amp;lt;&amp;lt; Colors( "Dark Red" );
dt &amp;lt;&amp;lt; Select Where( :Z == 2 ) &amp;lt;&amp;lt; Colors( "Dark Green" );
dt &amp;lt;&amp;lt; Select Where( :Z == 3 ) &amp;lt;&amp;lt; Colors( "Dark Blue" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Markers( "FilledSquare" );

Graph Builder(
	Size( 531, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :X ), Y( :Y ), Overlay( :Z ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"X",
			ScaleBox,
			{Min( 0.92068931615959 ), Max( 2.08769739976682 ), Inc( 0.2 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Y",
			ScaleBox,
			{Min( 0.866326530612245 ), Max( 2.12682788421491 ), Inc( 0.2 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				3,
				Properties( 0, {Marker Size( 6 )}, Item ID( "1", 1 ) ),
				Properties( 1, {Marker Size( 6 )}, Item ID( "2", 1 ) ),
				Properties( 2, {Marker Size( 6 )}, Item ID( "3", 1 ) )
			)}
		)
	)
)

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 28 Jan 2024 07:43:21 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-01-28T07:43:21Z</dc:date>
    <item>
      <title>JMP scripting on Bivariate plot</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718571#M90166</link>
      <description>&lt;P&gt;Dear JMP script experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example to&amp;nbsp;illustrate I am trying to do.&amp;nbsp; wondering if any expert can help or shed the light on writing the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cdwang9507_0-1706422691104.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60654i38B58ABE76E0628F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cdwang9507_0-1706422691104.png" alt="cdwang9507_0-1706422691104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By using Bivariate Fit of Y by X to generate a plot.&amp;nbsp; And the row legend is Z column.&amp;nbsp; Each data point of Z is plotted as square (not circle as default.&amp;nbsp; And Z=1 is plotted as green color, Z=2 is plotted as blue color and Z=3 is plotted as red color.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems the script on the right side does not work for other table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciated it for the helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 06:26:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718571#M90166</guid>
      <dc:creator>cdwang9507</dc:creator>
      <dc:date>2024-01-28T06:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: JMP scripting on Bivariate plot</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718572#M90167</link>
      <description>&lt;P&gt;Which table it doesn't work with? What goes wrong? Is there a message in log? Which JMP Version are you using?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 07:10:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718572#M90167</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-01-28T07:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: JMP scripting on Bivariate plot</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718574#M90168</link>
      <description>&lt;P&gt;I was not able to correct your issue using Bivariate, however, it works correctly using Graph Builder.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1706427756588.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/60655i2164406CE723CA25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1706427756588.png" alt="txnelson_0-1706427756588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = current data table();

// Set selected rows' colors
dt &amp;lt;&amp;lt; Select Where( :Z == 1 ) &amp;lt;&amp;lt; Colors( "Dark Red" );
dt &amp;lt;&amp;lt; Select Where( :Z == 2 ) &amp;lt;&amp;lt; Colors( "Dark Green" );
dt &amp;lt;&amp;lt; Select Where( :Z == 3 ) &amp;lt;&amp;lt; Colors( "Dark Blue" );
dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Markers( "FilledSquare" );

Graph Builder(
	Size( 531, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :X ), Y( :Y ), Overlay( :Z ) ),
	Elements( Points( X, Y, Legend( 3 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"X",
			ScaleBox,
			{Min( 0.92068931615959 ), Max( 2.08769739976682 ), Inc( 0.2 ),
			Minor Ticks( 1 )}
		),
		Dispatch(
			{},
			"Y",
			ScaleBox,
			{Min( 0.866326530612245 ), Max( 2.12682788421491 ), Inc( 0.2 ),
			Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				3,
				Properties( 0, {Marker Size( 6 )}, Item ID( "1", 1 ) ),
				Properties( 1, {Marker Size( 6 )}, Item ID( "2", 1 ) ),
				Properties( 2, {Marker Size( 6 )}, Item ID( "3", 1 ) )
			)}
		)
	)
)

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Jan 2024 07:43:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-scripting-on-Bivariate-plot/m-p/718574#M90168</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-01-28T07:43:21Z</dc:date>
    </item>
  </channel>
</rss>

