Let's say I need to script a graph. And I have a variable that is optional. I might have it, might not have it. Let's say in the example below I might have "Y_Parameter_Std" in the table, might not have it.
How do I script this optional variable?
gb = Graph Builder(
Size( 350, 200 ),
Show Control Panel( 0 ),
Variables( X( Column( X_Parameter ) ), Y( Column( Y_Parameter ) ), Overlay( :Wafer ID ), Interval( Column(Y_Parameter_Std) ) ),
Elements(
Points( X, Y, Legend( 14 ), Interval Style( "Band" ) ),
Smoother( X, Y, Legend( 15 ), Lambda( 0.1 ) ),
)
);
The way I'm going to try it is this:
Have script for the GB in an expression variable with a placeholder for Interval. If there is a column for interval - replace placeholder with the corresponding expression. If not - replace it with "".
Any other more elegant way?
Thanks,
M