一个最近的愿望清单项目要求一种数字格式,它是一种科学记数法,使用上标幂而不是计算机中的“e”分隔符来表示 10 的幂。 换句话说,3.4 × 10⁵ 而不是 3.4e+5。 由于上标数字可用作 Unicode 字符,因此可以将此类数字写为常规文本,而无需显式上标。 这意味着我们可以在具有自定义标签格式的轴上获得这样的数字。
图形轴长期以来一直支持自定义标签格式,这些格式是可以生成任意轴标签的 JSL 表达式。 这是一个将“°F”添加到 y 轴标签的示例。

我通过在“轴设置”对话框中选择“自定义”作为“格式”来做到这一点。

然后单击“自定义格式”以调出公式编辑器的版本来创建这个简单的公式。

科学的公式更复杂,但仍然符合框架。 我创建了这个公式,它以 JMP 的常规科学记数法开始,然后用相应的上标字符替换指数的数字。
Local( {supers = "⁰¹²³⁴⁵⁶⁷⁸⁹", d, parts},
parts = Words( Format( value, "Scientific", width, dec ), "e" ); // split on e
Substitute Into( parts[2], "+", "", "-", "⁻" ); // ignore +, superscript -
For( d = 0, d <= 9, d++, // superscript each digit
Substitute Into( parts[2], Char( d ), Substr( supers, d + 1, 1 ))
);
if (value == 0, "0", parts[1] || " × 10" || parts[2]); // add x10 unless 0
)
这是使用该格式的图表。

最后,这是图表的整个脚本,自定义格式是轴自定义和数据过滤器的一部分,仅显示顶部状态。
Open( "$SAMPLE_DATA/Corn Wheat Soybean Production.jmp" );
Graph Builder(
Transform Column(
"Maximum[Commodity Acres Planted][State,Commodity]",
Formula( Col Maximum( :Commodity Acres Planted, :State, :Commodity ) )
),
Size( 658, 487 ),
Show Control Panel( 0 ),
Variables(
X( :Year ),
Y( :Commodity Acres Planted ),
Group X( :Commodity ),
Overlay( :State )
),
Elements( Points( X, Y, Legend( 35 ) ), Smoother( X, Y, Legend( 36 ) ) ),
Local Data Filter(
Add Filter(
columns( :"Maximum[Commodity Acres Planted][State,Commodity]"n ),
Where(
:"Maximum[Commodity Acres Planted][State,Commodity]"n >= 4658000
)
)
),
SendToReport(
Dispatch( {}, "Year", ScaleBox,
{Min( 1999.5 ), Max( 2017.5 ), Inc( 10 ), Minor Ticks( 1 )}
),
Dispatch( {}, "Commodity Acres Planted", ScaleBox,
{Format( "Custom",
Formula(
Local( {supers = "⁰¹²³⁴⁵⁶⁷⁸⁹", d, parts},
parts = Words( Format( value, "Scientific", width, dec ), "e" );
Substitute Into( parts[2], "+", "", "-", "⁻" );
For( d = 0, d <= 9, d++,
Substitute Into( parts[2], Char( d ), Substr( supers, d + 1, 1 ))
);
if (value == 0, "0", parts[1] || " × 10" || parts[2]);
)
)
), Min( 0 ), Max( 15.5e6 ), Inc( 5e6 ), Minor Ticks( 4 )}
))
);
亲爱的,
谢谢你的解释。
在论坛的帮助下,我获得了 Anova 图形的演示文稿。

我用了这个公式: 
但正如您所示,我想删除“^”并在指数中保留最后一个数字。但我不明白,因为我是一个JMP初学者,如何实现你的上标。你能一步步向我解释吗?
提前致谢
最好的祝福