<?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 RGB color by sript in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743943#M92365</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I would like to color column "Name" and to use RGB&lt;BR /&gt;but recive mistake, what's wrong I did in this script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dt = Current Data Table();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where (:"NAME" == :"NAME");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Column(dt, "NAME") &amp;lt;&amp;lt; Color Cells (RGB ( 173, 255, 47 ), rows_to_color);&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 17:02:33 GMT</pubDate>
    <dc:creator>Dennisbur</dc:creator>
    <dc:date>2024-04-03T17:02:33Z</dc:date>
    <item>
      <title>RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743943#M92365</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I would like to color column "Name" and to use RGB&lt;BR /&gt;but recive mistake, what's wrong I did in this script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dt = Current Data Table();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where (:"NAME" == :"NAME");&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Column(dt, "NAME") &amp;lt;&amp;lt; Color Cells (RGB ( 173, 255, 47 ), rows_to_color);&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 17:02:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743943#M92365</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2024-04-03T17:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743947#M92366</link>
      <description>&lt;P&gt;What are you trying to do with this comparison dt &amp;lt;&amp;lt; Get Rows Where (:"NAME" == :"NAME")? Get list of all rows or something else? Also I don't think JMP has RGB named argument for Color Cells (you can get those colors, but it requires a bit more work)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/color-cells.shtml#ww725145" target="_blank"&gt;https://www.jmp.com/support/help/en/17.2/#page/jmp/color-cells.shtml#ww725145&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/graphics-functions.shtml?os=win&amp;amp;source=application#ww2650608" target="_blank"&gt;https://www.jmp.com/support/help/en/17.2/#page/jmp/graphics-functions.shtml?os=win&amp;amp;source=application#ww2650608&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 17:11:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743947#M92366</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-03T17:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743994#M92367</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I mean, for example, I would like to paint the columns&lt;/P&gt;&lt;P&gt;and mostly, I use names of color like "Light Red"&lt;/P&gt;&lt;P&gt;for example, to color the column &lt;STRONG&gt;HOT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;rows_to_color = dt &amp;lt;&amp;lt; Get Rows Where(:"HOT" == :"HOT");&lt;/P&gt;&lt;P&gt;Column(dt, "HOT") &amp;lt;&amp;lt; Color Cells("Light Red", rows_to_color);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dennisbur_0-1712165571020.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63039i375A143DE865102E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dennisbur_0-1712165571020.png" alt="Dennisbur_0-1712165571020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I believe I can use more shades of color, maybe like RGB code?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 17:44:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/743994#M92367</guid>
      <dc:creator>Dennisbur</dc:creator>
      <dc:date>2024-04-03T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744001#M92368</link>
      <description>&lt;P&gt;Yes you can. You can convert RGB colors to "JMP Colors" using RGB Color function. Below is an example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");

// lawngreen
Column(dt, "age") &amp;lt;&amp;lt; Color Cells(RGB Color({124, 252, 0}/255));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:02:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744001#M92368</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-04-03T18:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744025#M92370</link>
      <description>&lt;P&gt;Rather than use "get rows where", might be easier to create a matrix of all row numbers.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "Test Color", Add Rows( 5 ),
	New Column( "Column 1", Numeric, "Continuous", Format( "Best", 12 ),
		Set Values( [1, 2, 3, 4, 5] ) )
);
// Create a matrix of rows 1 to n
rows_to_color = 1::nrows(dt);
// Set the color
dt:Column 1 &amp;lt;&amp;lt; color cells("Red", rows_to_color);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmroz_0-1712168521459.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/63041iF56D97BC89940489/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmroz_0-1712168521459.png" alt="pmroz_0-1712168521459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:22:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744025#M92370</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2024-04-03T18:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: RGB color by sript</title>
      <link>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744092#M92376</link>
      <description>&lt;P&gt;You can also supply a list of RGB values instead of a name or index value.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column(dt, "age") &amp;lt;&amp;lt; Color Cells( { 1, 1, 0.8 } );  // light yellow&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2024 19:13:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/RGB-color-by-sript/m-p/744092#M92376</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2024-04-03T19:13:47Z</dc:date>
    </item>
  </channel>
</rss>

