11.42.1 axes

The axes modifier may be used to specify which axes data should be plotted against when plots have multiple parallel axes – for example, if a plot has an x-axis along its lower edge and an x2-axis along its upper edge. The following example would plot data using the x2-axis as the ordinate axis and the y-axis as the abscissa axis:

plot sin(x) axes x2y1

It is also possible to use the axes modifier to specify that a vertical ordinate axis and a horizontal abscissa axis should be used; the following example would plot data using the y-axis as the ordinate axis and the x-axis as the abscissa axis:

plot sin(x) axes yx