Ok, here is the repost:
Thanks, it works now. But another problem came up: I need to configure the axes. The code, that formerly worked is:
prec = New Window( "Shunts vs PREC",
dt << Graph Builder(
Size( 853, 558 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Lock Scales( 1 ),
Variables( X( :Precursor, Size( 120 ) ), Y( :Shunts ), Group Y( :Anlage2 ) ),
Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
"Precursor",
ScaleBox,
{Min( start_datum - tag ), Max( end_datum ), Interval( "Day" ), Inc( date_inc ), Minor Ticks( 0 ),
Rotated Labels( 1 )}
),
Dispatch(
{},
"Shunts",
ScaleBox,
{Format( "Best", 12 ), Min( -0.1 ), Max( 12 ), Inc( 1 ), Minor Ticks( 1 ),
Add Ref Line( 4, Solid, {255, 0, 0} ), Show Major Grid( 1 ), Rotated Labels( "Automatic" )}
)
)
)
);
I just copied this code from the "copy script" option of the graph. Unfortunately I hardly understand the code. The updated version using lists does not do anything with the axes:
date_list = List( "Precursor", "CIS" );
tool_list = List( "Anlage2", "Anlage3" );
prec = New Window( "Shunts vs PREC",
dt << Graph Builder(
Size( 853, 558 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Lock Scales( 1 ),
Variables(
X( Column( dt, date_list[i] ), Size( 120 ) ),
Y( :Shunts ),
Group Y( Column( dt, tool_list[i] ) ),
Elements( Points( X, Y, Legend( 2 ) ), Smoother( X, Y, Legend( 3 ) ) ),
SendToReport(
Dispatch(
{},
date_list[i],
ScaleBox,
{Min( start_datum - tag ), Max( end_datum ), Interval( "Day" ), Inc( date_inc ), Minor Ticks( 0 ),
Rotated Labels( 1 )}
),
Dispatch(
{},
"Shunts",
ScaleBox,
{Format( "Best", 12 ), Min( -0.1 ), Max( 12 ), Inc( 1 ), Minor Ticks( 1 ),
Add Ref Line( 4, Solid, {255, 0, 0} ), Show Major Grid( 1 ), Rotated Labels( "Automatic" )}
)
)
)
)
);
Thanks and regards Arno