<?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 Gradient Max with Slider box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780700#M96294</link>
    <description>&lt;P&gt;I believe you can do what you want by changing the Scale Values using a Set Gradient Scale Values message.&amp;nbsp; See the Scripting Index for description and examples.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 19:53:14 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-08-09T19:53:14Z</dc:date>
    <item>
      <title>Change Gradient Max with Slider box</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780686#M96291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to vary the Max value of the gradient using the slider box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__0-1723230134817.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67010i8310C65B96FB79BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__0-1723230134817.png" alt="Jackie__0-1723230134817.png" /&gt;&lt;/span&gt;&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/Wafer Stacked.jmp" );
sliderValue = .6;
New Window( "", 
	
	
	H List Box(
		
		Panel Box( "Slider Box",
			tb = Text Box( "Gradient Maxium: " || Char( sliderValue ) ),
			sb = Slider Box( 0, 10, sliderValue, tb &amp;lt;&amp;lt; Set Text( "Value: " || Char( sliderValue ) ) )
		), 	
		
		H List Box(
			Graph Builder(
				Size( 592, 569 ),
				Show Control Panel( 0 ),
				Variables( X( :X_Die ), Y( :Y_Die ), Color( :Defects ) ),
				Elements( Heatmap( X, Y, Legend( 5 ) ) ),
				SendToReport(
					Dispatch(
						{},
						"400",
						ScaleBox,
						{Legend Model( 5, Properties( 0, {gradient( {Min Lightness( 0 ), Width( 12 )} )}, Item ID( "Defects", 1 ) ) )}
					)
				)
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2024 19:03:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780686#M96291</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2024-08-09T19:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change Gradient Max with Slider box</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780698#M96293</link>
      <description>&lt;P&gt;You can&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Wafer Stacked.jmp");
sliderValue = 0.6;

nw = New Window("", 
	H List Box(
		Panel Box("Slider Box",
			sb = Slider Box(0, 10, sliderValue, 
				vals = [.] || Matrix(sliderValue);
				Eval(EvalExpr(
					item &amp;lt;&amp;lt; Set Properties({gradient({Scale Values(Expr(vals))})})
				));
			)
		), 	
		H List Box(
			gb = dt &amp;lt;&amp;lt; Graph Builder(
				Size(592, 569),
				Show Control Panel(0),
				Variables(X(:X_Die), Y(:Y_Die), Color(:Defects)),
				Elements(Heatmap(X, Y, Legend(5))),
				SendToReport(
					Dispatch({}, "400", ScaleBox,
						{Legend Model(
							5,
							Properties(
								0,
								{gradient({Min Lightness(0), Width(12)})},
								Item ID("Defects", 1)
							)
						)}
					)
				)
			)
		)
	)
);

server = gb &amp;lt;&amp;lt; Get Legend Server;
item = server &amp;lt;&amp;lt; Get Legend Item(5, 1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Aug 2024 19:47:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780698#M96293</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-09T19:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change Gradient Max with Slider box</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780700#M96294</link>
      <description>&lt;P&gt;I believe you can do what you want by changing the Scale Values using a Set Gradient Scale Values message.&amp;nbsp; See the Scripting Index for description and examples.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 19:53:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Gradient-Max-with-Slider-box/m-p/780700#M96294</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-08-09T19:53:14Z</dc:date>
    </item>
  </channel>
</rss>

