列表框中包含多个图形的框架大小我为每个 VISUAL_ID 绘制了 3 个图表。 一种用于电阻,一种用于 DRP,一种用于温度。 我遇到的问题是,当有多个 VISUAL_ID 时,图表会变得非常小。 我在 Graph Builder 中设置了图形大小,但这似乎分布在所有图形中。 所有图形的宽度保持不变,但每个图形的长度根据绘制的 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 );