Search code examples
xmgrace

How to flip axis in xmgrace?


I have a graph and I just want to rotate it 90°, which could be accomplished if I could flip the x and y axis. How can I do it? I have no experience in using xmgrace via terminal.


Solution

    • Step 1: Click “Data” from the menu bar. Select “Transformations.” Then select “Geometric transforms…”

    • Step 2: Select the set(s) or “All sets.” Enter “90.0” in the “Rotation (degrees)” field. Enter “-1.0” in the “Scale X” field.

    • Step 3: Click Accept. Click Close.

    • Step 4: Autoscale graph (one can use the “AS” tab from the toolbar).

    Note: This works on Grace-5.1.25. You could play with the “Geometric transform…” fields by entering different values, if you want to, to get your desired results.

    PS: I learned this trick from my advisor.