<?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: Windows 11 &amp;gt; JMP 19 &amp;gt; Script to Assign Continuous Gradient &amp;gt; Issue with Passing the Gradient Range to the Column Property in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Windows-11-gt-JMP-19-gt-Script-to-Assign-Continuous-Gradient-gt/m-p/936199#M109163</link>
    <description>&lt;P&gt;You are missing expression evaluation&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Current Data Table();

scol = dt &amp;lt;&amp;lt; Get Selected Columns("String");

For Each({colname}, scol,
	Column(dt, colname) &amp;lt;&amp;lt; Format("Fixed Dec", 12, 3);
	low_mark = Col Quantile(Column(dt, colname), 0.05);
	high_mark = Col Quantile(Column(dt, colname), 0.95);
	
	If(Abs(low_mark) &amp;gt; high_mark,
		bound = -low_mark,
		bound = high_mark
	);
	
	range_list = Eval List({-bound, bound, 0});

	Eval(EvalExpr(
		Column(dt, colname) &amp;lt;&amp;lt; Set Property(
			"Color Gradient",
			{"Blue White Red", Range(Expr(range_list)), Color cell by value(1)}
		)		
	));
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Mar 2026 15:38:58 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-03-19T15:38:58Z</dc:date>
    <item>
      <title>Windows 11 &gt; JMP 19 &gt; Script to Assign Continuous Gradient &gt; Issue with Passing the Gradient Range to the Column Property</title>
      <link>https://community.jmp.com/t5/Discussions/Windows-11-gt-JMP-19-gt-Script-to-Assign-Continuous-Gradient-gt/m-p/936189#M109162</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;I wrote a simple script to assign a color gradient to continuous-value columns based on the 0.05 quantile of columns values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = current data table ();

scol = dt &amp;lt;&amp;lt; Get Selected Columns ();

For (i = 1, i &amp;lt;= N items (scol), i++,
	column (dt, scol[i]) &amp;lt;&amp;lt; Format("Fixed Dec", 12, 3);
	low_mark = Col Quantile(column (dt, scol[i]), 0.05);
	high_mark = Col Quantile(column (dt, scol[i]), 0.95);
	
	if(abs(low_mark) &amp;gt; high_mark, bound = -low_mark, bound = high_mark);
	
	range_list = {-bound, bound, 0};
	
	column (dt, scol[i]) &amp;lt;&amp;lt; Set Property ("Color Gradient", 
										{"Blue White Red", Range (Eval list (range_list)),
										Color cell by value (1)})
	
	
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;While it works in assigning the&amp;nbsp; correct colors, JMP returns an error when I subsequently edit the gradient manually (see below):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="JMP ERROR.png" style="width: 354px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/96449iD081DDB0B4A02594/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMP ERROR.png" alt="JMP ERROR.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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, I need a method to pass the gradient range values without triggering an error upon subsequent manual edits.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 15:32:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Windows-11-gt-JMP-19-gt-Script-to-Assign-Continuous-Gradient-gt/m-p/936189#M109162</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2026-03-19T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 11 &gt; JMP 19 &gt; Script to Assign Continuous Gradient &gt; Issue with Passing the Gradient Range to the Column Property</title>
      <link>https://community.jmp.com/t5/Discussions/Windows-11-gt-JMP-19-gt-Script-to-Assign-Continuous-Gradient-gt/m-p/936199#M109163</link>
      <description>&lt;P&gt;You are missing expression evaluation&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Current Data Table();

scol = dt &amp;lt;&amp;lt; Get Selected Columns("String");

For Each({colname}, scol,
	Column(dt, colname) &amp;lt;&amp;lt; Format("Fixed Dec", 12, 3);
	low_mark = Col Quantile(Column(dt, colname), 0.05);
	high_mark = Col Quantile(Column(dt, colname), 0.95);
	
	If(Abs(low_mark) &amp;gt; high_mark,
		bound = -low_mark,
		bound = high_mark
	);
	
	range_list = Eval List({-bound, bound, 0});

	Eval(EvalExpr(
		Column(dt, colname) &amp;lt;&amp;lt; Set Property(
			"Color Gradient",
			{"Blue White Red", Range(Expr(range_list)), Color cell by value(1)}
		)		
	));
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Mar 2026 15:38:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Windows-11-gt-JMP-19-gt-Script-to-Assign-Continuous-Gradient-gt/m-p/936199#M109163</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-03-19T15:38:58Z</dc:date>
    </item>
  </channel>
</rss>

