<?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: setting absolute minimum and maximum in color bar of heatmap in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10056#M9812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Well, I was trying to do that on a Points + Contour graph, and that "Copy Script" procedure didn't work, because the Contour graph uses a Legend Model 10, whereas the Points used Legend Model 11. Model 10 doesn't allow you to set the range of the gradient. HOWEVER, I can force the Legend Model to be 11 for both the Contour and the Points:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;Elements(&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; Contour( X, Y, Legend( 11 ) ), //It's Legend(10) normally!&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; Points( X, Y, Legend( 11 ), Jitter( 1 ) )&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; ),&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can then do a SendToReport to the Legend Model 11, which modifies the gradient values for both the Contour and the Points, simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gb &amp;lt;&amp;lt; SendToReport( Dispatch( {}, "400", ScaleBox,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {Legend Model( 11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Properties(0, {gradient( {Label Levels( [10 50 1100] )} )} ) )} ) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks like I'll be able to do what I need.&lt;/P&gt;&lt;P&gt;Too bad none of this is documented for users...&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 17:52:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-14T17:52:42Z</dc:date>
    <item>
      <title>setting absolute minimum and maximum in color bar of heatmap</title>
      <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10052#M9808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making heatmaps and I would like to control the scale of the color. Meaning that although the data might range from 1-10 I would like to be able to use a specific minimum and maximum in the color bar and if possible control the spacing.&lt;/P&gt;&lt;P&gt;he same question would apply to the size of dot if I am using size as a 3rd dimension of a scatter plot.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Walid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 22:31:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10052#M9808</guid>
      <dc:creator>wskamoun</dc:creator>
      <dc:date>2014-11-04T22:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: setting absolute minimum and maximum in color bar of heatmap</title>
      <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10053#M9809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can right-click on the gradient in the Graph Builder legend to get a Gradient Settings dialog where you can customize the range and other aspects of the gradient.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7526_gradient.png" style="width: 417px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/964i19BD493D42B2CFF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="7526_gradient.png" alt="7526_gradient.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:00:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10053#M9809</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2016-10-18T22:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: setting absolute minimum and maximum in color bar of heatmap</title>
      <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10054#M9810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there some way to change the gradient values programmatically to a Graph Builder that's already been put on the screen? I'd like to be able to change the min/center/max values dynamically to allow the user to optimize for maximum contrast in data that's been displayed. Ideally I'd make a slider box for each...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 17:39:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10054#M9810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-11T17:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: setting absolute minimum and maximum in color bar of heatmap</title>
      <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10055#M9811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. The most straightforward way is to customize the scale once interactively, and then save the script and use that as a template. The script will include an embedded "SendToReport" part, but that can be separated from the initial script and executed repeatedly as you adjust the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, the saved customized script might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14314431840429503 jive_text_macro" jivemacro_uid="_14314431840429503" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;Graph Builder(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Size( 519, 447 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Show Control Panel( 0 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Variables( X( :age ), Y( :sex ), Color( :height ) ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Elements( Heatmap( X, Y, Legend( 5 ) ) ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; SendToReport(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dispatch( &lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;{}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;"400", &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;ScaleBox,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {Legend Model( &lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;5,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Properties( &lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;0,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {gradient( {Scale Values( [50 65 75] ), Width( 12 )} )})&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt; )&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;)}&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; )&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;);&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which can be written separately as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14314432721819814 jive_text_macro" jivemacro_uid="_14314432721819814" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;gb = Graph Builder(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Size( 519, 447 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Show Control Panel( 0 ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Variables( X( :age ), Y( :sex ), Color( :height ) ),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Elements( Heatmap( X, Y, Legend( 5 ) ) )&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gb&amp;lt;&amp;lt;SendToReport( &lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;Dispatch( &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;{}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;"400", &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;ScaleBox,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; {Legend Model( &lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;5,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; Properties( 0, {gradient( {Scale Values( [50 65 75] )} )} )&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt; )}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number 5 in this case is an identifier for the legend, in case of multiple element, each having its own legend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 15:10:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10055#M9811</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2015-05-12T15:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: setting absolute minimum and maximum in color bar of heatmap</title>
      <link>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10056#M9812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Well, I was trying to do that on a Points + Contour graph, and that "Copy Script" procedure didn't work, because the Contour graph uses a Legend Model 10, whereas the Points used Legend Model 11. Model 10 doesn't allow you to set the range of the gradient. HOWEVER, I can force the Legend Model to be 11 for both the Contour and the Points:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;Elements(&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; Contour( X, Y, Legend( 11 ) ), //It's Legend(10) normally!&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; Points( X, Y, Legend( 11 ), Jitter( 1 ) )&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; ),&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can then do a SendToReport to the Legend Model 11, which modifies the gradient values for both the Contour and the Points, simultaneously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gb &amp;lt;&amp;lt; SendToReport( Dispatch( {}, "400", ScaleBox,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {Legend Model( 11,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Properties(0, {gradient( {Label Levels( [10 50 1100] )} )} ) )} ) );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks like I'll be able to do what I need.&lt;/P&gt;&lt;P&gt;Too bad none of this is documented for users...&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 17:52:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/setting-absolute-minimum-and-maximum-in-color-bar-of-heatmap/m-p/10056#M9812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-14T17:52:42Z</dc:date>
    </item>
  </channel>
</rss>

