<?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 legend script problem - cant apply legend in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/legend-script-problem-cant-apply-legend/m-p/34082#M20197</link>
    <description>&lt;P&gt;HI all ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i write script that should give me a Bivar Plot with 2 rule of legend&lt;/P&gt;&lt;P&gt;unfortunately its just show me in the side bar that he recognize the legends but dosent&amp;nbsp;&lt;/P&gt;&lt;P&gt;apply them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i atteched photo of the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advenced&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem.PNG" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4678iAEEAC5151F94FAE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem.PNG" alt="problem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 09:58:49 GMT</pubDate>
    <dc:creator>Dolev1988</dc:creator>
    <dc:date>2017-01-05T09:58:49Z</dc:date>
    <item>
      <title>legend script problem - cant apply legend</title>
      <link>https://community.jmp.com/t5/Discussions/legend-script-problem-cant-apply-legend/m-p/34082#M20197</link>
      <description>&lt;P&gt;HI all ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i write script that should give me a Bivar Plot with 2 rule of legend&lt;/P&gt;&lt;P&gt;unfortunately its just show me in the side bar that he recognize the legends but dosent&amp;nbsp;&lt;/P&gt;&lt;P&gt;apply them&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i atteched photo of the problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advenced&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem.PNG" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/4678iAEEAC5151F94FAE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem.PNG" alt="problem.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 09:58:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/legend-script-problem-cant-apply-legend/m-p/34082#M20197</guid>
      <dc:creator>Dolev1988</dc:creator>
      <dc:date>2017-01-05T09:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: legend script problem - cant apply legend</title>
      <link>https://community.jmp.com/t5/Discussions/legend-script-problem-cant-apply-legend/m-p/34083#M20198</link>
      <description>&lt;P&gt;Here is a example script that will create a bivariate chart with the 2 Row Legends.&amp;nbsp; It then waits 5 seconds, and clears the Row States in your data table.&amp;nbsp; The end result of this is that the display will then change to reflect the new values&amp;nbsp;of the Row States in the data table.&amp;nbsp; I suspect, in your script, you are creating the bivariate chart, and then the Row Legends, and then somewhere later in your script you are clearing the&amp;nbsp;Row States in your data table.&amp;nbsp; If you want the chart to remain static after you&amp;nbsp;create it, I suggest that once you create the chart in the form you want it, that you save it to a journal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Bivariate(
	Y( :height ),
	X( :weight ),
	Kernel Smoother( 1, 1, 0.5, 0 ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				sex,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			), Row Legend(
				age,
				Color( 0 ),
				Color Theme( "" ),
				Marker( 1 ),
				Marker Theme( "Hollow" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

// wait 5 seconds and then clear the row states in the data table
wait(5);
dt &amp;lt;&amp;lt; clear row states;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:27:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/legend-script-problem-cant-apply-legend/m-p/34083#M20198</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-01-05T11:27:16Z</dc:date>
    </item>
  </channel>
</rss>

