Search code examples
xmgrace

Xmgrace delete specific row in dataset via batch file


I want to delete the first row of dataset. I tried through Commands window (Window>Commands) by typing any:

S0[2][0]
S0[1][0]
S0[1][1]
S0[1:2][1]

But I got errors:

[Error] syntax error: S0[2][0]
[Error] syntax error: S0[1][0]
[Error] syntax error: S0[1][1]
[Error] syntax error: S0[1:2][1]

Is there any way to do this?


Solution

  • I got the answer from xmgr commands, this is achieved with command DROP

    • setnum DROP expr, expr
    • graphno.setnum DROP expr, expr

    Drop points in setnum (or graphno.setnum). The parameters give the index of the first and last points to drop, respectively.