<?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: Change Row marker shape through JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248947#M48870</link>
    <description>&lt;P&gt;If you would like to make the script more humanly-readable, you can also use names like Marker("Plus")&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:32:35 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2020-02-24T15:32:35Z</dc:date>
    <item>
      <title>Change Row marker shape through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248839#M48851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few scripts which generate graphs that look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhiIippe_0-1582442779938.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21872i87EB95619633F0FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhiIippe_0-1582442779938.png" alt="PhiIippe_0-1582442779938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I would like it to always look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhiIippe_1-1582442899673.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21873i7FA2DC8BF4C41F30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhiIippe_1-1582442899673.png" alt="PhiIippe_1-1582442899673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I do this using JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2020 07:28:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248839#M48851</guid>
      <dc:creator>PhiIippe</dc:creator>
      <dc:date>2020-02-23T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Row marker shape through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248852#M48854</link>
      <description>&lt;P&gt;You need to understand JMP row states. They are fundamental to controlling the behavior of JMP platforms. In this case, you need to change the Marker row state. The default marker state is a dot. You can interactively select all the rows, select Rows &amp;gt; Marker &amp;gt; "+", and then deselect all the rows. Row state changes are pushed out to all objects ("dynamic linking") so you do not have to change the row state before launching the platform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are data table messages to accomplish the same thing in a script:&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" );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ) );

Wait( 2 );

dt &amp;lt;&amp;lt; Select All Rows &amp;lt;&amp;lt; Markers( 1 ) &amp;lt;&amp;lt; Clear Select;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Feb 2020 11:12:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248852#M48854</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-23T11:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change Row marker shape through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248947#M48870</link>
      <description>&lt;P&gt;If you would like to make the script more humanly-readable, you can also use names like Marker("Plus")&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:32:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248947#M48870</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-02-24T15:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change Row marker shape through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248952#M48875</link>
      <description>&lt;P&gt;You can also set the marker in the graph by right-clicking on the marker in the legend, and selecting Marker &amp;gt; +.&amp;nbsp; You need to do this for all the markers.&amp;nbsp; Then click the red triangle save the script somewhere.&amp;nbsp; It will look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "Untitled", Add Rows( 11 ),
	New Column( "X Value", Character, "Nominal",
		Set Values(
			{"02", "02", "02", "03", "03", "03", "04", "04", "05", "05", "05"}
		)
	),
	New Column( "Y Value", Numeric, "Continuous", Format( "Best", 12 ),
		Set Values( [100, 120, 130, 110, 105, 108, 200, 220, 201, 190, 195] )
	)
);

dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :X Value ), Y( :Y Value ), Overlay( :X Value ) ),
	Elements( Points( X, Y, Legend( 14 ), Jitter( "None" ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				14,
				Properties( 0, {Marker( "Plus" )}, Item ID( "02", 1 ) ),
				Properties( 1, {Marker( "Plus" )}, Item ID( "03", 1 ) ),
				Properties( 2, {Marker( "Plus" )}, Item ID( "04", 1 ) ),
				Properties( 3, {Marker( "Plus" )}, Item ID( "05", 1 ) ),
				Properties( -1, {Marker( "Plus" )}, Item ID( "Y Value", 1 ) )
			)}
		)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Feb 2020 16:02:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/248952#M48875</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-02-24T16:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change Row marker shape through JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/249014#M48898</link>
      <description>&lt;P&gt;This is just an FYI, since the question was about changing markers by JSL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A frequent request is to set a special marker based upon another column's&amp;nbsp; row value or condition. The script below shows the markers&amp;nbsp; of the&amp;nbsp; extended ASCII character set and and two examples of special symbols, like a star or an infinity sign using the function&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hex to Number(&lt;/STRONG&gt;"hexcode"&lt;STRONG&gt;)&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;. Run the script, there is a wait, then markers are changed for rows 4 and 5.&lt;/P&gt;
&lt;P&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);

Markers_dt = New Table( "Marker Codes",
	Add Rows( 301 ),
	New Column( "Marker Number", Numeric)
);
Markers_dt:Marker Number &amp;lt;&amp;lt; Set Each Value(Row() -1);

For( i = 1, i &amp;lt;= N Row( Markers_dt ), i++,
	Marker Of( Row State( i ) ) = i-1;// Markers_dt:Marker Number[i]
);

wait(2);

Row State(4) = Combine States( 
     Selected State(1), Hidden State(1), 
	 Color State("Dark Blue Green"), 
	 Marker State( Hex to Number("221E") ) //Hex for unicode infinity
);
Markers_dt:Marker Number[4] = Hex to Number("221E");


Marker Of(Row State(5))= Hex to Number("2606"); //Hex for star
Markers_dt:Marker Number[5] = Hex to Number("2606");

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 09:56:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Row-marker-shape-through-JSL/m-p/249014#M48898</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-02-25T09:56:56Z</dc:date>
    </item>
  </channel>
</rss>

