您好 - 我的一位同事最初製作的圖表具有由連續列進行顏色編碼的標記(參見“原始”圖像)。 當他們保存腳本並重新運行腳本以重新創建圖形時,顏色編碼消失並且所有標記都變為栗色(參見“之後”圖像)。 對於如何保持顏色編碼,以便每次運行圖形腳本時,顏色編碼保持不變,您有什麼建議嗎? 可能是什麼問題?
原版的

-->重新運行腳本後,儘管保存了配色方案:
後

Hi
我使用的是Big Class.jmp。用‘身高’和‘体重’作为Y和X。把‘身高’放入‘颜色’。
选择需要的色阶,然后将label中点的配置进行调整。(如图)
然后保存脚本就可以了。脚本中主要的区别是图中的点被定义的次数不同。
调整后的脚本如下:
Graph Builder(
Size( 528, 456 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Color( :height ) ),
Elements( Points( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
5,
Properties(
0,
{gradient( {Color Theme( "Spectral" )} )},
Item ID( "height", 1 )
)
)}
),
Dispatch( {}, "400", LegendBox, {Set Title( "" )} )
)
)未做调整的脚本如下:
多了scatter plot开始时默认时的定义
Properties( 1, {Line Color( -11538191 ), Fill Color( -11538191 ), gradient( {Color Theme( "Spectral" )} )}, Item ID( "height", 2 ))
Graph Builder(
Variables( X( :weight ), Y( :height ), Color( :height ) ),
Elements( Points( X, Y, Legend( 9 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
9,
Properties(
0,
{gradient( {Color Theme( "Spectral" )} )},
Item ID( "height", 1 )
),
Properties(
1,
{Line Color( -11538191 ), Fill Color( -11538191 ),
gradient( {Color Theme( "Spectral" )} )},
Item ID( "height", 2 )
)
)}
)
)
)