Hi all,
I have an issue with plotting some data from an FTIR experiment. I have a list containing the name of the columns I want to plot on the Y axis so that they are all overlaid on the same scale (not on top of each other). But somehow I can't figure out how to write the code.
I tried like this but it seems like the "Position([1])"isn't really working.
Can anyone help?
Thanks!
gb = dt<< Graph Builder(
Show Control Panel(1),
Variables(X(:Wavenumber)),
Elements( Line(X,Y))
);
gb << inval;
For Each({y_col, idx}, columns_list,
Eval(evalExpr(
gb << Add Variable({Expr(Name Expr(As Column(dt, y_col))),Position([1]), Role("Y")})
));
);
gb << Update window;