<?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: Custom scales in Graph Builder? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/911019#M107024</link>
    <description>&lt;P&gt;The fit curve doesn't fit?&lt;BR /&gt;&lt;BR /&gt;There is no automatic update of the fit after changing the scale.&lt;BR /&gt;To trigger the update, change the fit settings and revert to the original settings:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1762174771452.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/86262i4FA7B0E7867804A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1762174771452.png" alt="hogi_0-1762174771452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 12:59:49 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-11-03T12:59:49Z</dc:date>
    <item>
      <title>Custom scales in Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/910238#M106919</link>
      <description>&lt;P&gt;Some analyses require an axis scale that is not available by default in Graph Builder - like&amp;nbsp;&amp;nbsp;Arrhenius plots with Temperature plotted as 1/T [K].&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1761667988302.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85898i0B9CD086B1A0D95D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1761667988302.png" alt="hogi_0-1761667988302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Let's start with the example from the Scripting Index. We want to generate a Log plot manually - and learn from it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$sample_data/big class.jmp" );
gb = Graph Builder(
	Variables( X( :height ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height}, ScaleBox( 2 ),
			{Scale( "Log" ), Max( 1000 ), Minor Ticks( 1 ),
			Label Row( Show Minor Grid( 1 ) )}
		)
	)
);
gbr = Report( gb );
gbr[axisbox( 1 )] &amp;lt;&amp;lt; scale(
	custom scale,
	Scale To Internal( Function( {x}, If( x &amp;gt; 0, Log( x, 2 ), . ) ) ),
	Scale To External( Function( {x}, Power( 2, x ) ) )
) &amp;lt;&amp;lt; Min( 32 ) &amp;lt;&amp;lt; Max( 100 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a function &lt;FONT face="courier new,courier"&gt;Scale to Internal()&lt;/FONT&gt; which is used to apply the &lt;FONT face="courier new,courier"&gt;log()&lt;/FONT&gt;&amp;nbsp;to the X axis - and a &lt;FONT face="courier new,courier"&gt;Scale to External()&lt;/FONT&gt; which is the inverse function.&lt;BR /&gt;&lt;BR /&gt;After executing the code ...&lt;BR /&gt;&lt;BR /&gt;a)&amp;nbsp; the user get a log scale on the X axis (compare with the default Log scale on the Y axis):&lt;BR /&gt;[add some data points&amp;nbsp;@ 200, 500 , ...]&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1761670027446.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85910i4B7F6A01AE47D652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1761670027446.png" alt="hogi_4-1761670027446.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;... in addition:&lt;BR /&gt;b)&amp;nbsp; &lt;STRONG&gt;Custom Scale&lt;/STRONG&gt;&amp;nbsp;appears in the axis menu&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1761668396360.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85901iCF21F3E41BBE84BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1761668396360.png" alt="hogi_1-1761668396360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;c) ... and the user gets access to &lt;STRONG&gt;Cube Root&lt;/STRONG&gt; and &lt;STRONG&gt;Johnson Su&lt;/STRONG&gt; scale.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In analogy to the previous example, one can use&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current report()[axisbox( 1 )] &amp;lt;&amp;lt; scale(
	custom scale,
	Scale To Internal( Function( {x}, if (x&amp;gt;-273, 1/(x+273)) ) ),
	Scale To External( Function( {x}, if (x&amp;gt;0,1/x-273)) ) 
) &amp;lt;&amp;lt; Min( 30 ) &amp;lt;&amp;lt; Max( 100 ) &amp;lt;&amp;lt; Inc(2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;... to plot Temperature [°C] on a 1/K scale :)&lt;/img&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1761670774224.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85914i6584983069EAA6CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1761670774224.png" alt="hogi_0-1761670774224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and with&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1761671084396.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85916iB67A6BD9D405E759/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1761671084396.png" alt="hogi_1-1761671084396.png" /&gt;&lt;/span&gt;&lt;BR /&gt;one gets:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1761671064758.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/85915iBBBB35EF32BE213A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1761671064758.png" alt="hogi_0-1761671064758.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;Questions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;where can I find a documentation of the functionality.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;the&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;If()&lt;/FONT&gt; in the &lt;CODE class=" language-jsl"&gt;Scale To External &lt;/CODE&gt;functions can restrict the range.&lt;BR /&gt;further applications besides "make it work"?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;I noticed a strange interplay of&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Scale to Internal / External()&lt;/FONT&gt;when both functions were not inverse of each other.&lt;BR /&gt;So, is it mandatory to use inverse functions? Are there interesting applications for non-inverse functions?&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;What is the definition of Inc()? Min() and Max() are defined in the original dimension [e.g. °C],&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;Inc()&amp;nbsp;&lt;/CODE&gt;is not defined in this dimension - nor in the "internal dimension".&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Adjusting the tick spacing is troublesome - dragging the axis a bit to far leads to a loss of all ticks or an extreme setting of Inc().&lt;BR /&gt;&lt;STRONG&gt;Why is Inc() not accessible via the GUI?!?&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;U&gt;Workaround:&lt;/U&gt; &lt;BR /&gt;change Min/Max with a small range - this reduces Inc(). Then drag the axis to increase the range.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Temperature runs from left to right, this is great!!! Nevertheless, besides &lt;FONT face="courier new,courier"&gt;Reverse order&lt;/FONT&gt;, can I also change&amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;Scale to Internal / External()&lt;/FONT&gt;&amp;nbsp;to make the temperature run from right to left.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 06 Nov 2025 21:40:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/910238#M106919</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-06T21:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom scales in Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/911019#M107024</link>
      <description>&lt;P&gt;The fit curve doesn't fit?&lt;BR /&gt;&lt;BR /&gt;There is no automatic update of the fit after changing the scale.&lt;BR /&gt;To trigger the update, change the fit settings and revert to the original settings:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1762174771452.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/86262i4FA7B0E7867804A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1762174771452.png" alt="hogi_0-1762174771452.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 12:59:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/911019#M107024</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-11-03T12:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom scales in Graph Builder?</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/917642#M107723</link>
      <description>&lt;P&gt;The Degradation Platform provide the same cool options to use custom axis scales for the fits:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Reliability/Device B.jmp" );
dt &amp;lt;&amp;lt; run script ("Degradation");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Better than Graph Builder:&lt;BR /&gt;The user can write the function and inverse function directly in the GUI:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1764886725009.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/88307i6DDF3D8B454B17C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1764886725009.png" alt="hogi_0-1764886725009.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 22:19:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-scales-in-Graph-Builder/m-p/917642#M107723</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-12-04T22:19:05Z</dc:date>
    </item>
  </channel>
</rss>

