我可以將圖表的每一頁(來自圖表產生器)保存到單獨的圖像檔案中嗎?我從一張圖表產生了很多頁面。 這是來自圖表產生器。
我喜歡將每一頁儲存為一個圖像檔案。 這在 JMP 中可能嗎?
謝謝,
戴夫
回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?此外,按組版本還可以使用資料表來保存圖表
The left-side data table was captured by the command on the right.The left-side data table was captured by the command on the right.左側的數據表是透過右側的命令捕獲的。
回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?此外,按群組使用與頁面選項大致相同,並且可以使用 xpath 提供更簡單的解決方案。 若要查看允許您使用按組代替頁面的啟動器,請紅色三角形->重做->重新啟動
Graph builder also has this traditional launcher dialog, mostly not needed.Graph builder also has this traditional launcher dialog, mostly not needed.圖形產生器也有這種傳統的啟動器對話框,但大多數情況下不需要。

回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?好問題。 這是可以爬行顯示樹以收集各個部分的 JSL。 日誌樹在 17 到 18 之間發生了變化,並且可能會再次發生變化。 您可能可以直接在 graphbuilder 上執行 17 變體,但我發現使用期刊更容易,尤其是使用 JMP 18 Early Adopter 版本。
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
g = dt << Graph Builder(
Size( 528, 2956 ),
Show Control Panel( 0 ),
Variables( X( :weight ), Y( :height ), Page( :age ) ),
Elements( Points( X, Y, Legend( 5 ) ), Smoother( X, Y, Legend( 6 ) ) )
);
// make a journal just for this task, the vanilla journal might be in use.
tempWindow = New Window( "temp", <<TYPE>= "18", // easier in 18, the journal groups the pictures
// moving the graphs to a journal window is the key; the elements are not
// grouped by pages in a usable displaybox tree in graphbuilder, but they
// are when graphbuilder sends them to a journal.
// now use xpath to extract the chunks you want. In this case, using the
// journal's showproperties, we discover there is a lineup box whose children
// are what is needed. Get those children as a list...
graphList = tempwindow << XPath( "//OutlineBox[text()='Graph Builder']//LineUpBox/ListBox" );
// save the pics; dig out a name for each one
For Each( {graph}, graphList,
// grab a name and keep the non-special characters for a disk file name
label = Regex( graph[LabelBox( 1 )] << gettext, "[^A-Za-z0-9]+", "_", GLOBALREPLACE );
// create the individual picture using the label for a filename
graph << savepicture( dir || label || ".png", "png" );
);
, // else harder in 17, find a way...
// at least for this example we find pairs of listboxes, without a listbox wrapper as in 18
labList = tempwindow << XPath( "//OutlineBox[text()='Graph Builder']//BorderBox//LabelBox" );
For Each( {lab}, lablist,
label = Regex( lab << gettext, "[^A-Za-z0-9]+", "_", GLOBALREPLACE );
parent = lab << parent; // use the journal's property sheet to see what is needed
spacer = parent << sib;
graph = spacer << sib;
combine = V List Box( parent, graph );
combine << savepicture( dir || label || ".png", "png" );
);
);
// just for fun, see what happened
fileList = Files In Directory( dir );
For Each( {file}, fileList, Open( dir || file ) );</TYPE>回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?你好@davidmingyin -
無需任何腳本即可執行此操作的一種方法是將報告匯出為 Powerpoint(文件 > 匯出...)。 若要在圖形產生器中執行此操作,請在「頁面」放置區域中放置一列。 在其他分析平台中,將變數指派給「按」列角色。
當您匯出為 Powerpoint 時,每個單獨的圖表都會匯出為單獨投影片中的影像。
回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?也許我沒有正確理解你的答案@DMD 。 假設我有一個圖形產生器 gb,它由幾個頁面組成。 然後
gb << 期刊();
目前日誌() << 儲存圖片("\\ImageSaveLocation\ImageName.PNG");
當前日誌() << 關閉視窗;
儲存一張圖像及其中的所有頁面。 但我想要(這就是我的理解@davidmingyin )多個圖像,每個頁面都有自己的圖像。
如果有人能提供幫助,我會非常高興。 提前謝謝了!
回覆:我可以將圖表的每一頁(來自圖表產生器)儲存到單獨的圖像檔案中嗎?是的,這是可能的。 如果您希望將每個圖形產生器圖表儲存為圖像,則可以分別為每個圖形產生器圖表(或圖形產生器頁面集合)編寫腳本,如下所示:
gb << 期刊();
目前日誌() << 儲存圖片("\\ImageSaveLocation\ImageName.PNG");
當前日誌() << 關閉視窗;
gb2 << 日誌();
目前日誌() << 儲存圖片("\\ImageSaveLocation\ImageName2.PNG");
當前日誌() << 關閉視窗;