JSL 函數語法信息(例如:“Legend Model( )”)我確實剛剛開始學習 JMP 和 JSL。
我很難找到函數、命令等的語法信息。
我在“JSL Syntax Reference”文檔或在線上都找不到大多數內容。 您對完整的清單有什麼建議嗎?全部JSL函數和命令?
例如,現在我只是想繪製一個指定圖例名稱和顏色的圖表。 我希望“Legend 1”出現在倒數第二個位置。
網上偷了一些不同的腳本,我整理如下:
Graph Builder(
Size( 779, 677 ),
Show Control Panel( 0 ),
Variables( X( :X ), Y( :Y ), Wrap( :Items ), Color( :Name( "Legends" ) ) ),
Elements( Points( X, Y, Legend( 8 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
8,
Level Name( 0, "Legend 7", Item ID( "Legend 7", 1 ) ),
Level Name( 1, "Legend 2", Item ID( "Legend 2", 1 ) ),
Level Name( 2, "Legend 3", Item ID( "Legend 3", 1 ) ),
Level Name( 3, "Legend 4", Item ID( "Legend 4", 1 ) ),
Level Name( 4, "Legend 5", Item ID( "Legend 5", 1 ) ),
Level Name( 5, "Legend 6", Item ID( "Legend 6", 1 ) ),
Level Name( 6, "Legend 1", Item ID( "Legend 1", 1 ) ),
Level Name( 7, "Legend 8", Item ID( "Legend 8", 1 ) ),
Properties( 0, {Line Color( 36 )} ),
Properties( 1, {Line Color( -15343117 )} ),
Properties( 2, {Line Color( -15343117 )} ),
Properties( 3, {Line Color( -15343117 )} ),
Properties( 4, {Line Color( -15343117 )} ),
Properties( 5, {Line Color( -15343117 )} ),
Properties( 6, {Line Color( 40 )} ),
Properties( 7, {Line Color( 24 )} )
)}
)
)
);這不起作用... 它稱為“傳奇1”、“傳奇7”,僅此而已。
預先感謝您的任何幫助!
大規模定制回复:JSL 函數語法信息(例如:“Legend Model( )”)非常感謝!
回复:JSL 函數語法信息(例如:“Legend Model( )”)你犯了一個重大錯誤。您正在編寫 JSL,而不是讓 JMP 為您編寫 JSL。如果您按照您想要的方式以交互方式創建圖形,那麼您可以請求保存 JSL,這將按照您指定的方式重新創建圖形。
也就是說,如果你有圖表

其中包含除圖例規範之外的所有內容,您可以轉到紅色三角形並選擇圖例設置

然後在彈出的對話框中可以更改圖例1的位置。

然後轉到紅色小三角並選擇保存腳本,它會保存腳本以及重現腳本所需的命令
Graph Builder(
Size( 779, 677 ),
Show Control Panel( 0 ),
Variables( X( :X ), Y( :Y ), Wrap( :Items ), Color( :Legends ) ),
Elements( Points( X, Y, Legend( 8 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
8,
Properties( 0, {Line Color( 36 )}, Item ID( "Legend 1", 1 ) ),
Properties( 1, {Line Color( -15343117 )}, Item ID( "Legend 2", 1 ) ),
Properties( 2, {Line Color( -15343117 )}, Item ID( "Legend 3", 1 ) ),
Properties( 3, {Line Color( -15343117 )}, Item ID( "Legend 4", 1 ) ),
Properties( 4, {Line Color( -15343117 )}, Item ID( "Legend 5", 1 ) ),
Properties( 5, {Line Color( -15343117 )}, Item ID( "Legend 6", 1 ) ),
Properties( 6, {Line Color( 40 )}, Item ID( "Legend 7", 1 ) ),
Properties( 7, {Line Color( 24 )}, Item ID( "Legend 8", 1 ) )
)}
),
Dispatch(
{},
"400",
LegendBox,
{Legend Position( {8, [6, 0, 1, 2, 3, 4, 5, 7]} )}
)
)
);

我發現腳本索引是所有函數和平台語法的最佳參考。它包含可以發送到平台和功能的所有消息以及實例。