你好,
標題可能解釋得不好,但在下面我添加了一個簡單的 csv 示例和一個 visio 圖來說明我想要的內容。 不確定如何稱呼這種圖,或者如何使用兩列來設置 y 值有效的範圍(開始和停止)。
格式文件:
Y 列;X0 列;X1 列
20;0;5
30;10;15
將數據讀入 JMP
以交互方式或使用腳本堆疊數據
Data Table( "Untitled 4" ) << Stack(
columns( :Column X0, :Column X1 ),
Source Label Column( "Label" ),
Stacked Data Column( "Data" )
);
然後以交互方式或使用下面的腳本運行圖形生成器
Graph Builder(
Variables( X( :Data ), Y( :Column Y ), Overlay( :Column Y ) ),
Elements( Line( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
5,
Properties( 0, {Line Color( 20 )} ),
Properties( 1, {Line Color( 20 )} )
)}
)
)
);
