列錶框中包含多個圖形的框架大小我為每個 VISUAL_ID 繪製了 3 個圖表。 一種用於電阻,一種用於 DRP,一種用於溫度。 我遇到的問題是,當有多個 VISUAL_ID 時,圖表會變得非常小。 我在圖形產生器中設定了圖形大小,但這似乎分佈在所有圖形上。 所有圖表的寬度保持不變,但每個圖表的長度會根據繪製的 VISUAL_ID 數量而變化。 我希望所有圖表的大小都相同,都是 500x1000,無論繪製了多少個 VISUAL_ID。
幫助?
New Window( "Resistance - Application",
H List Box(
Graph Builder(
Size(500, 1000),
Show Control Panel( 0 ),
Show Legend( 0 ),
Automatic Recalc( 0 ),
Variables( X( :STRESS_TIME_HOUR_QTY ), Y( :RESISTANCE_OHM_QTY ), Page( :VISUAL_ID ) ),
Elements( Points( X, Y, Legend( 6 ) ) )
),
Graph Builder(
Size(500, 1000),
Show Control Panel( 0 ),
Show Legend( 0 ),
Automatic Recalc( 0 ),
Variables( X( :STRESS_TIME_HOUR_QTY ), Y( :DRP ), Page( :VISUAL_ID ) ),
Elements( Points( X, Y, Legend( 4 ) ) )
),
Graph Builder(
Size(500, 1000),
Show Control Panel( 0 ),
Show Legend( 0 ),
Automatic Recalc( 0 ),
Variables( X( :STRESS_TIME_HOUR_QTY ), Y( :TEMPERATURE_OVEN_CELSIUS_QTY ), Page( :VISUAL_ID ) ),
Elements( Points( X, Y, Legend( 6 ) ) )
)
)
)<< save Journal(path1 || "Resistance.jrn");
回覆:列錶框中具有多個圖形的框架大小效果很好! 謝謝!
回覆:列錶框中具有多個圖形的框架大小這可能有很長的路要走,但下面的腳本將以 500x500 大小輸出每個圖形,並將單獨的頁面堆疊在一起,不同的圖形生成器實例水平排列。它使用與圖形產生器中的頁面功能完全不同的方法,但它提供相同的輸出,但每頁具有標準大小的圖形大小。
這個範例使用 Big Class 資料表,我只定義了 2 個圖,而不是您的範例中的 3 個圖,但擴充功能會很簡單。
Names Default To Here( 1 );
dt = Current Data Table();
Summarize( page = by( :sex ) );
New Window( "Resistance - Application", hlb = H List Box() );
bb = Border Box( top( 10 ), bottom( 10 ), Left( 10 ), Right( 10 ), sides( 15 ) ,
vlb = V List Box());
For( i = 1, i <= N Items( page ), i++,
vlb << append(
Eval(
Parse(
"gb = dt << Graph Builder(
Size(500, 500),
Show Control Panel( 0 ),
Show Legend( 0 ),
Automatic Recalc( 0 ),
Variables( X( :age ), Y( :weight ) ),
Elements( Points( X, Y, Legend( 6 ) ) ),where(:sex == \!""
|| page[i] || "\!"));"
)
)
)
);
hlb << append (bb );
bb = Border Box( top( 10 ), bottom( 10 ), Left( 10 ), Right( 10 ), sides( 15 ) ,
vlb = V List Box());
For( i = 1, i <= N Items( page ), i++,
vlb << append(
Eval(
Parse(
"gb = dt << Graph Builder(
Size(500, 500),
Show Control Panel( 0 ),
Show Legend( 0 ),
Automatic Recalc( 0 ),
Variables( X( :age ), Y( :Height ) ),
Elements( Points( X, Y, Legend( 6 ) ) ),where(:sex == \!""
|| page[i] || "\!"));"
)
)
)
);
hlb << append (bb );