<?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: JSL Functions Syntax Information (for Example: &amp;quot;Legend Model(  )&amp;quot;) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514254#M74142</link>
    <description>&lt;P&gt;You are making a major mistake.&amp;nbsp; &amp;nbsp;You are writing the JSL, rather than letting JMP write the JSL for you.&amp;nbsp; If you create the graph interactively, just the way you want it, you can then request to have the JSL saved that will recreate the graph just the way you specified.&lt;/P&gt;
&lt;P&gt;That is, if you have the graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_5-1656269571687.png" style="width: 807px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43571i26CEE0B72DD990EC/image-dimensions/807x648?v=v2" width="807" height="648" role="button" title="txnelson_5-1656269571687.png" alt="txnelson_5-1656269571687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which has everything, except for the Legend specification, you can go to the red triangle and select Legend Settings&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1656269051282.png" style="width: 492px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43568iF2EF0DDF12AEE5B8/image-dimensions/492x322?v=v2" width="492" height="322" role="button" title="txnelson_2-1656269051282.png" alt="txnelson_2-1656269051282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and then in the dialog window that pops up, you can change the position of the legend 1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_3-1656269224121.png" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43569i1893D84F6FE77D81/image-dimensions/612x643?v=v2" width="612" height="643" role="button" title="txnelson_3-1656269224121.png" alt="txnelson_3-1656269224121.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;then go to the red triangle and select save script and it saves the script with the commands required to reproduce it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 779, 677 ),
	Show Control Panel( 0 ),
	Variables( X( :X ), Y( :Y ), Wrap( :Items ), Color( :Legends ) ),
	Elements( Points( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				8,
				Properties( 0, {Line Color( 36 )}, Item ID( "Legend 1", 1 ) ),
				Properties( 1, {Line Color( -15343117 )}, Item ID( "Legend 2", 1 ) ),
				Properties( 2, {Line Color( -15343117 )}, Item ID( "Legend 3", 1 ) ),
				Properties( 3, {Line Color( -15343117 )}, Item ID( "Legend 4", 1 ) ),
				Properties( 4, {Line Color( -15343117 )}, Item ID( "Legend 5", 1 ) ),
				Properties( 5, {Line Color( -15343117 )}, Item ID( "Legend 6", 1 ) ),
				Properties( 6, {Line Color( 40 )}, Item ID( "Legend 7", 1 ) ),
				Properties( 7, {Line Color( 24 )}, Item ID( "Legend 8", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {8, [6, 0, 1, 2, 3, 4, 5, 7]} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_4-1656269479315.png" style="width: 835px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43570i9EF3F4236EBE0CE7/image-dimensions/835x628?v=v2" width="835" height="628" role="button" title="txnelson_4-1656269479315.png" alt="txnelson_4-1656269479315.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find the Scripting Index to be the best reference for all of the functions and platform syntax.&amp;nbsp; It has all of the messages that can be sent to a platform and functions, along with live examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jun 2022 19:01:39 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-06-26T19:01:39Z</dc:date>
    <item>
      <title>JSL Functions Syntax Information (for Example: "Legend Model(  )")</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514245#M74141</link>
      <description>&lt;P&gt;I literally just started learning JMP and JSL.&lt;/P&gt;&lt;P&gt;I am having a very hard time finding syntax information of functions, commands, etc..&lt;/P&gt;&lt;P&gt;I cannot find most things neither on the "JSL Syntax Reference" document or online. Do you have any suggestions for a comprehensive list of &lt;STRONG&gt;&lt;U&gt;all&lt;/U&gt;&lt;/STRONG&gt; JSL functions and commands?&lt;/P&gt;&lt;P&gt;For example, right now I am just trying to plot a graph specifying the legend names and colors. I want the "Legend 1" to appear at the second-last slot.&lt;/P&gt;&lt;P&gt;Stealing some different scripts online, I put together the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 779, 677 ),
	Show Control Panel( 0 ),
	Variables( X( :X ), Y( :Y ), Wrap( :Items ), Color( :Name( "Legends" ) ) ),
	Elements( Points( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				8,
				Level Name( 0, "Legend 7", Item ID( "Legend 7", 1 ) ),
				Level Name( 1, "Legend 2", Item ID( "Legend 2", 1 ) ),
				Level Name( 2, "Legend 3", Item ID( "Legend 3", 1 ) ),
				Level Name( 3, "Legend 4", Item ID( "Legend 4", 1 ) ),
				Level Name( 4, "Legend 5", Item ID( "Legend 5", 1 ) ),
				Level Name( 5, "Legend 6", Item ID( "Legend 6", 1 ) ),
				Level Name( 6, "Legend 1", Item ID( "Legend 1", 1 ) ),
				Level Name( 7, "Legend 8", Item ID( "Legend 8", 1 ) ),
				Properties( 0, {Line Color( 36 )} ),
				Properties( 1, {Line Color( -15343117 )} ),
				Properties( 2, {Line Color( -15343117 )} ),
				Properties( 3, {Line Color( -15343117 )} ),
				Properties( 4, {Line Color( -15343117 )} ),
				Properties( 5, {Line Color( -15343117 )} ),
				Properties( 6, {Line Color( 40 )} ),
				Properties( 7, {Line Color( 24 )} )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It doesn't work... It calls "Legend 1", "Legend 7" and that's it.&lt;/P&gt;&lt;P&gt;Thank you in advance for any help!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:25:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514245#M74141</guid>
      <dc:creator>Valerio</dc:creator>
      <dc:date>2023-06-11T11:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Functions Syntax Information (for Example: "Legend Model(  )")</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514254#M74142</link>
      <description>&lt;P&gt;You are making a major mistake.&amp;nbsp; &amp;nbsp;You are writing the JSL, rather than letting JMP write the JSL for you.&amp;nbsp; If you create the graph interactively, just the way you want it, you can then request to have the JSL saved that will recreate the graph just the way you specified.&lt;/P&gt;
&lt;P&gt;That is, if you have the graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_5-1656269571687.png" style="width: 807px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43571i26CEE0B72DD990EC/image-dimensions/807x648?v=v2" width="807" height="648" role="button" title="txnelson_5-1656269571687.png" alt="txnelson_5-1656269571687.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which has everything, except for the Legend specification, you can go to the red triangle and select Legend Settings&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1656269051282.png" style="width: 492px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43568iF2EF0DDF12AEE5B8/image-dimensions/492x322?v=v2" width="492" height="322" role="button" title="txnelson_2-1656269051282.png" alt="txnelson_2-1656269051282.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and then in the dialog window that pops up, you can change the position of the legend 1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_3-1656269224121.png" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43569i1893D84F6FE77D81/image-dimensions/612x643?v=v2" width="612" height="643" role="button" title="txnelson_3-1656269224121.png" alt="txnelson_3-1656269224121.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;then go to the red triangle and select save script and it saves the script with the commands required to reproduce it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 779, 677 ),
	Show Control Panel( 0 ),
	Variables( X( :X ), Y( :Y ), Wrap( :Items ), Color( :Legends ) ),
	Elements( Points( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				8,
				Properties( 0, {Line Color( 36 )}, Item ID( "Legend 1", 1 ) ),
				Properties( 1, {Line Color( -15343117 )}, Item ID( "Legend 2", 1 ) ),
				Properties( 2, {Line Color( -15343117 )}, Item ID( "Legend 3", 1 ) ),
				Properties( 3, {Line Color( -15343117 )}, Item ID( "Legend 4", 1 ) ),
				Properties( 4, {Line Color( -15343117 )}, Item ID( "Legend 5", 1 ) ),
				Properties( 5, {Line Color( -15343117 )}, Item ID( "Legend 6", 1 ) ),
				Properties( 6, {Line Color( 40 )}, Item ID( "Legend 7", 1 ) ),
				Properties( 7, {Line Color( 24 )}, Item ID( "Legend 8", 1 ) )
			)}
		),
		Dispatch(
			{},
			"400",
			LegendBox,
			{Legend Position( {8, [6, 0, 1, 2, 3, 4, 5, 7]} )}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_4-1656269479315.png" style="width: 835px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43570i9EF3F4236EBE0CE7/image-dimensions/835x628?v=v2" width="835" height="628" role="button" title="txnelson_4-1656269479315.png" alt="txnelson_4-1656269479315.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find the Scripting Index to be the best reference for all of the functions and platform syntax.&amp;nbsp; It has all of the messages that can be sent to a platform and functions, along with live examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 19:01:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514254#M74142</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-06-26T19:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Functions Syntax Information (for Example: "Legend Model(  )")</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514265#M74143</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 19:27:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Functions-Syntax-Information-for-Example-quot-Legend-Model/m-p/514265#M74143</guid>
      <dc:creator>Valerio</dc:creator>
      <dc:date>2022-06-26T19:27:24Z</dc:date>
    </item>
  </channel>
</rss>

