有些分析需要图形生成器中默认情况下不提供的轴刻度,例如温度以 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");
比图表构建器更好:
用户可以直接在图形用户界面中编写函数及其逆函数:
