(グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?1 つのグラフから多数のページを生成しました。 これはグラフビルダーからのものです。
各ページを 1 つの画像ファイルとして保存するのが好きです。 これはJMPでも可能でしょうか?
ありがとう、
デイブ
Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?また、グループ別バージョンは、グラフを保持するデータテーブルと連携します。
The left-side data table was captured by the command on the right.左側のデータ テーブルは、右側のコマンドによってキャプチャされました。
Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?また、グループによる使用はページ オプションとほぼ同じであり、xpath を使用すると解決策が簡単になります。 ページの代わりにグループ別を使用できるランチャーを表示するには、赤い三角ボタン -> やり直し -> 再起動します。
Graph builder also has this traditional launcher dialog, mostly not needed.グラフ ビルダーには、この従来の起動ダイアログもありますが、ほとんど必要ありません。

Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?良い質問。 これは、表示ツリーをクロールしてピースを収集できる JSL です。 ジャーナル ツリーは 17 から 18 の間に変更され、再び変更される可能性があります。 おそらく 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>Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?こんにちは@davidmingyin -
スクリプトを使用せずにこれを行う 1 つの方法は、レポートを Powerpoint としてエクスポートすることです ([ファイル] > [エクスポート...])。 グラフ ビルダーでこれを行うには、「ページ」ドロップ ゾーンに列を配置します。 他の分析プラットフォームでは、変数を「By」列の役割に割り当てます。
Powerpoint としてエクスポートすると、個々のグラフが別のスライドの画像としてエクスポートされます。
Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?もしかしたらあなたの答えを正しく理解していないかもしれません@DMD 。 いくつかのページで構成されるグラフ ビルダー gb があるとします。 それから
gb << ジャーナル();
current Journal() << 画像を保存 ("\\画像保存場所\画像名.PNG");
current Journal() << ウィンドウを閉じる;
すべてのページを含む 1 つの画像を保存します。 しかし、私は欲しい(そしてこれが私が理解した方法です) @davidmingyin ) 各ページに独自の画像を含む複数の画像。
誰かが助けてくれたら本当に嬉しいです。 よろしくお願いします!
Re: (グラフビルダーからの) グラフの各ページを 1 つの個別の画像ファイルに保存できますか?はい、可能です。 各グラフ ビルダー チャートを画像として保存したい場合は、グラフ ビルダー チャート (またはグラフ ビルダー ページのコレクション) ごとに次のようにスクリプト化できます。
gb << ジャーナル();
current Journal() << 画像を保存 ("\\画像保存場所\画像名.PNG");
current Journal() << ウィンドウを閉じる;
gb2 << ジャーナル();
current Journal() << 画像を保存 ("\\ImageSaveLocation\ImageName2.PNG");
current Journal() << ウィンドウを閉じる;