有些分析需要圖形產生器中預設不提供的軸刻度,例如溫度以 1/T [K] 表示的阿倫尼烏斯圖。

讓我們從腳本索引中的範例開始。我們想要手動產生一個對數圖,並從中學習:
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 )] << scale(
custom scale,
Scale To Internal( Function( {x}, If( x > 0, Log( x, 2 ), . ) ) ),
Scale To External( Function( {x}, Power( 2, x ) ) )
) << Min( 32 ) << Max( 100 );
有一個函數縮放至內部() ,用於對 X 軸應用紀錄() ;還有一個函數 Scale to External() ,它是該函數的反函數。
程式碼執行完畢後…
a) 使用者在 X 軸上看到的是對數刻度(與 Y 軸上的預設對數刻度相比):
[增加一些數據點,例如 200、500 等]

.... 另外:
b)自訂刻度出現在座標軸選單中

c) …使用者可以存取立方根和蘇約翰遜量表。
與前面的例子類似,我們可以利用
current report()[axisbox( 1 )] << scale(
custom scale,
Scale To Internal( Function( {x}, if (x>-273, 1/(x+273)) ) ),
Scale To External( Function( {x}, if (x>0,1/x-273)) )
) << Min( 30 ) << Max( 100 ) << Inc(2);
</CODE></P>
<P>……以 1/K 為單位繪製溫度 [°C] :)</img></P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1761670774224.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="hogi_0-1761670774224.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="hogi_0-1761670774224.png" style="width: 400px;"><img src="https://us.v-cdn.net/6038925/uploads/images/85914i6584983069EAA6CA/hogi_0-1761670774224.png" role="button" title="hogi_0-1761670774224.png" alt="hogi_0-1761670774224.png" /></span></SPAN></SPAN></P>
<P>並且與</P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1761671084396.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="hogi_1-1761671084396.png" style="width: 305px;"><span class="lia-inline-image-display-wrapper" image-alt="hogi_1-1761671084396.png" style="width: 305px;"><img src="https://us.v-cdn.net/6038925/uploads/images/85916iB67A6BD9D405E759/hogi_1-1761671084396.png" role="button" title="hogi_1-1761671084396.png" alt="hogi_1-1761671084396.png" /></span></SPAN></SPAN><BR />得到:</P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1761671064758.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="hogi_0-1761671064758.png" style="width: 400px;"><span class="lia-inline-image-display-wrapper" image-alt="hogi_0-1761671064758.png" style="width: 400px;"><img src="https://us.v-cdn.net/6038925/uploads/images/85915iBBBB35EF32BE213A/hogi_0-1761671064758.png" role="button" title="hogi_0-1761671064758.png" alt="hogi_0-1761671064758.png" /></span></SPAN></SPAN></P>
<BR />
<BR />
<P>問題:</P>
<UL>
<LI>哪裡可以找到該功能的文檔?<BR /><BR /></LI>
<LI>the <FONT face="courier new,courier">如果()</FONT> in the <CODE class=" language-jsl">Scale To External functions can restrict the range.
further applications besides "make it work"?
我注意到當規模化為內部/外部()這兩個函數不是彼此的逆函數時,它們之間存在著一種奇怪的相互作用。
那麼,是否必須使用反函數呢?非反函數有哪些有趣的應用?
What is the definition of Inc()? Min() and Max() are defined in the original dimension [e.g. °C],<BR />Inc() is not defined in this dimension - nor in the "internal dimension".
調整刻度間距很麻煩-將軸拖曳得太遠會導致所有刻度遺失或 Inc() 設定過大。
為什麼無法透過圖形使用者介面存取 Inc() 函數?
變通方法:
先用較小的範圍調整最小值/最大值-這會降低 Inc() 函數的取值範圍。然後拖曳座標軸來增加範圍。
溫度從左到右顯示,這太棒了! ! !不過,除了反轉順序之外,我還能把「規模化為內部/外部()」改成溫度從右到左顯示嗎?
擬合曲線不擬合?
更改比例後,擬合效果不會自動更新。
若要觸發更新,請變更適配設置,然後恢復到原始設定:

退化平台提供了同樣很棒的選項,可以使用自訂軸刻度進行擬合:
dt = Open( "$SAMPLE_DATA/Reliability/Device B.jmp" );
dt << run script ("Degradation");
比圖表建構器更好:
使用者可以直接在圖形使用者介面中編寫函數及其逆函數:
