在圖形產生器中標準化圖形創建圖形後,是否可以對圖形生成器中的圖形進行標準化,涉及:
- 大小(例如 1200 x 900 像素)
- 軸設定(字體大小)
- 和標題(字體大小)
透過應用 JSL? 有其他方法可以實現這一目標嗎?
大規模客製化回覆:在圖形產生器中標準化圖形雖然它在創建圖形後不起作用,但在圖形生成器首選項中您可以指定圖形高度和圖形寬度。 這將適用於圖形生成器創建的每個圖形。
回覆:在圖形產生器中標準化圖形這是非常必要的! 腳本沒有什麼幫助,因為它太麻煩了。 我需要一種簡單的方法來創建多個相同尺寸的圖形,而不必總是恢復到在視窗中拖曳
回覆:在圖形產生器中標準化圖形感謝您的快速回覆。根據我的經驗,傳輸在 Power Point 等中具有相似外觀的 JMP 圖表是很棘手的。
我是 JSL 的初學者。 因此,我希望有一個簡單的解決方案,透過該解決方案,我能夠標準化圖形生成器中的當前圖形,包括標題、軸和圖形大小或格式(長度:寬度,例如3:2),並克服不同的問題檢視 Power Point 等。
回覆:在圖形產生器中標準化圖形我提供的是適用於給定範例的程式碼。 它旨在展示您可以用來完成您想要的事情的方法。然而,由於圖形產生器輸出的可能性很大,對於替代圖形,指向文字方塊()和軸框()的指標可能完全不同。您將需要檢查不同的輸出,然後將所需的程式碼移至腳本中。
回覆:在圖形產生器中標準化圖形這麼晚才回覆很抱歉。 我確實嘗試建立一個加載項或運行程式碼:
i = 1;
stop = "No";
While( Window( i ) << Get Window Title != {} & Stop == "No",
If( Word( 2, Window( i ) << Get Window Title, "-" ) == " Graph Builder",
stop = "Yes";
Break();
);
i++;
);
If( stop == "Yes",
// Set the size of the display
Window( i )[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
Window( i )[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
Window( i )[AxisBox( 2 )] << label row( set font size( 14 ) );
);對於圖形產生器中具有開放圖形的其他資料集。 我看不到圖表有任何變化或影響。 我錯過了什麼嗎?
回覆:在圖形產生器中標準化圖形Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Size( 528, 484 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Group X( :age ) ),
Elements( Box Plot( X, Y, Legend( 1 ) ) )
);
// The code below could be put into an JMP Addin, and it would scan through all
// of the windows and when the first Graph Builder output window is found, it
// would set the standard settings
//
// The code could also be changed to display a list of all of the Graph Builder windows found
// and the user could then select the one(s) to set
//
// There are other issues, since the Graph Builder can produce a multitude of
// outputs. The setting of the graph area size, will vary based upon the
// elements within the output display.
i = 1;
stop = "No";
While( Window( i ) << Get Window Title != {} & Stop == "No",
If( Word( 2, Window( i ) << Get Window Title, "-" ) == " Graph Builder",
stop = "Yes";
Break();
);
i++;
);
If( stop == "Yes",
// Set the size of the display
Window( i )[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
Window( i )[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
Window( i )[AxisBox( 2 )] << label row( set font size( 14 ) );
);回覆:在圖形產生器中標準化圖形感謝吉姆的回覆。 腳本指向正確的方向。
是否有一種通用方法,例如我可以運行一個插件,將圖形生成器創建的圖形轉換為定義的標準圖形大小、標準標題和軸大小?
回覆:在圖形產生器中標準化圖形這是一個簡短的腳本,將向您展示如何執行此操作的範例...有關此內容的文件位於腳本指南和腳本索引中
幫助==>書籍==>腳本指南
幫助==>腳本索引
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
Size( 528, 484 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Group X( :age ) ),
Elements( Box Plot( X, Y, Legend( 1 ) ) )
);
rgb = Report( gb );
// Set the size of the display
rgb[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
rgb[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
rgb[AxisBox( 2 )] << label row( set font size( 14 ) );