Double Y Axes

To make a plot having two curves with different Y axis scaling, but with the same X axis scaling, one must disable the automatic axis creation with the noyaxes command and manually command the separate axes. This is shown in the following script;

    data test.dat
    xcolumn 1
    ycolumn 2
    ymin -2
    ymax 3
    xlabel Angle
    ylabel |_|_ COS( Angle )
    noyaxes
    plot
    showyaxis
    ymin -1
    ymax 1
    ycolumn 3
    dash 0.1
    ylabel |_|_ SIN( Angle )
    plot
    showsecondyaxis
    title Double Y

This creates a graph like this: