Hi Ann,
Based on a couple of experiments I performed, I would like to first make sure that your problem is with the Legend on not the GB plot line themselves. If it is the case, I noticed that when you change the line width manually within the Customize menu, the legends are not updated correctly either. Hence, this seems to be a bug.
However, when you manually change the line width one by one in the Legend, both the curves and the Legend are updated.
The corresponding code (for one Legend item lifted from the GB script) is as follows:
obj << SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model (3, Properties (2, {Line Width (3)}, Itemd ID ("14", 1) ) )}));
So, to iterate through the Legend items (i.e. ages), I came up with the following "ugly" code:
Names Default to Here (1);
dt = current data table ();
dts = dt << Summary(
Group( :age ),
Freq( "None" ),
Weight( "None" ),
invisible
);
dlist = Column (dts, "age") << get values;
Close (dts, NoSave);
show (dlist);
obj = dt << Graph Builder(
Size( 636, 660 ),
Variables( X( :height ), X( :weight, Position( 1 ) ), Color( :age ) ),
Elements( Parallel( X( 1 ), X( 2 ), Legend( 3 ) ) )
);
objr = obj << report;
//frame = objr [FrameBox(1 )]; NO LONGER NEEDED
//seg = frame << Find Seg( "Polyline Seg" ); NO LONGER NEEDED
//seg << Set Line Width(6); NO LONGER NEEDED
For (i = 0, i < N Items (dlist), i++,
obj << SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model (3, Properties (i, {Line Width (12)}, Itemd ID (dlist [i], 1) ) )}))
);
Thierry R. Sornasse